ncurses 5.5 to 5.9
5.9 (Apr 04, 2011) and 5.8 (Feb 26, 2011)
Section titled “5.9 (Apr 04, 2011) and 5.8 (Feb 26, 2011)”Interface changes
Section titled “Interface changes”-
add an alternate library configuration, i.e., “terminal driver” to support port to Windows, built with MinGW. There are two drivers (terminfo and Windows console). The terminfo driver works on other platforms.
-
add a new set of functions which accept a
SCREEN* parameter, in contrast with the original set which use the global value “sp”. By default, these names end with “_sp”, and are otherwise functionally identical with the originals.In addition to the “_sp” functions, there are a few new functions associated with this feature:
ceiling_panel,ground_panel,new_prescr.If the library is not built with the sp-funcs extension, there are no related interface changes.
-
add
tiparmfunction based on review of X/Open Curses Issue 7. -
change internal
_nc_has_mousefunction to publichas_mousefunction
Added extensions
Section titled “Added extensions”- add a few more functions to support the
NCURSES_OPAQUEfeature:get_escdelay,is_pad,is_subwin
Added internal functions (other than “_sp” variants)
Section titled “Added internal functions (other than “_sp” variants)”_nc_curscr_of_nc_format_slks_nc_get_alias_table_nc_get_hash_info_nc_insert_wch_nc_newscr_of_nc_outc_wrapper_nc_retrace_char_nc_retrace_int_attr_t_nc_retrace_mmask_t_nc_setup_tinfo_nc_stdscr_of_nc_tinfo_cmdch
Removed internal functions
Section titled “Removed internal functions”_nc_makenew(some configurations replace by_nc_makenew_sp)
Modified internal functions
Section titled “Modified internal functions”_nc_UpdateAttrs_nc_get_hash_table_nc_has_mouse_nc_insert_ch_nc_wgetch
5.7 (November 2, 2008)
Section titled “5.7 (November 2, 2008)”Interface changes
Section titled “Interface changes”-
generate linkable stubs for some macros:
getattrs -
Add new library configuration for tic-library (the non-curses portion of the ncurses library used for the tic program as well as some others such as tack. There is no API change, but makefiles would be changed to use the tic-library built separately.
tack, distributed separately from ncurses, uses some of the internal
_nc_XXXfunctions, which are declared in the tic.h header file.The reason for providing this separate library is that none of the functions in it are suitable for threaded applications.
-
Add new library configuration (ncursest, ncurseswt) which provides rudimentary support for POSIX threads. This introduces opaque access functions to the
WINDOWstructure and adds a parameter to several internal functions. -
move most internal variables (except tic-library) into data blocks
_nc_globalsand_nc_prescreento simplify analysis. Those were globally accessible, but since they were not part of the documented API, there is no ABI change. -
changed static tables of strings to be indices into long strings, to improve startup performance. This changes parameter lists for some of the internal functions.
Added extensions
Section titled “Added extensions”-
add
NCURSES_OPAQUEdefinition in curses.h to control whether internal details of theWINDOWstructure are visible to an application. This is always defined when the threaded library is built, and is optional otherwise. New functions for this:is_cleared,is_idcok,is_idlok,is_immedok,is_keypad,is_leaveok,is_nodelay,is_notimeout,is_scrollok,is_syncok,wgetparentandwgetscrreg. -
the threaded library (ncursest) also disallows direct updating of global curses-level variables, providing functions (via macros) for obtaining their value. A few of those variables can be modified by the application, using new functions:
set_escdelay,set_tabsize -
added functions
use_window()anduse_screen()which wrap a mutex (if threading is configured) around a call to a user-supplied function.
Added internal functions
Section titled “Added internal functions”_nc_get_alias_table_nc_get_screensize_nc_keyname_nc_screen_of_nc_set_no_padding_nc_tracechar_nc_tracemouse_nc_unctrl_nc_ungetch
These are used for leak-testing, and are stubs for ABI compatibility when ncurses is not configured for that using the --disable-leaks configure script option:
_nc_free_and_exit_nc_leaks_tinfo
Removed internal functions
Section titled “Removed internal functions”none
Modified internal functions
Section titled “Modified internal functions”_nc_fifo_dump_nc_find_entry_nc_handle_sigwinch_nc_init_keytry_nc_keypad_nc_locale_breaks_acs_nc_timed_wait_nc_update_screensize
Use new typedef TRIES to replace “struct tries”:
_nc_add_to_try_nc_expand_try_nc_remove_key_nc_remove_string_nc_trace_tries
5.6 (December 17, 2006)
Section titled “5.6 (December 17, 2006)”Interface changes
Section titled “Interface changes”-
generate linkable stubs for some macros:
getbegx,getbegy,getcurx,getcury,getmaxx,getmaxy,getparx,getpary,getpary,and (for libncursesw)
wgetbkgrnd
Added extensions
Section titled “Added extensions”Added internal functions
Section titled “Added internal functions”_nc_first_db_nc_get_source_nc_handle_sigwinch_nc_is_abs_path_nc_is_dir_path_nc_is_file_path_nc_keep_tic_dir_nc_keep_tic_dir_nc_last_db_nc_next_db_nc_read_termtype_nc_tic_dir
Also (if using the hashed database configuration):
-
_nc_db_close -
_nc_db_first -
_nc_db_get -
_nc_db_have_data -
_nc_db_have_index -
_nc_db_next -
_nc_db_open -
_nc_db_put -
otherwise -
_nc_hashed_db
Removed internal functions
Section titled “Removed internal functions”none
Modified internal functions
Section titled “Modified internal functions”_nc_add_to_try_nc_do_color_nc_expand_try_nc_remove_key_nc_setupscreen
5.5 (October 10, 2005)
Section titled “5.5 (October 10, 2005)”Interface changes
Section titled “Interface changes”-
terminfo installs “xterm-new” as “xterm” entry rather than “xterm-old” (aka xterm-r6).
-
terminfo data is installed using the tic -x option (few systems still use ncurses 4.2).
-
modify C++ binding to work with newer C++ compilers by providing initializers and using modern casts. Old-style header names are still used in this release to allow compiling with not-so-old compilers.
-
form and menu libraries now work with wide-character data. Applications which bypassed the form library and manipulated the FIELD.buf data directly will not work properly with libformw, since that no longer points to an array of char. The
set_field_buffer()andfield_buffer()functions translate to/from the actual field data. -
change
SP->_current_attrto a pointer, adjust ifdef’s to ensure that libtinfo.so and libtinfow.so have the same ABI. The reason for this is that the corresponding data which belongs to the upper-level ncurses library has a different size in each model. -
winnstr()now returns multibyte character strings for the wide-character configuration. -
assume_default_colors()no longer requires thatuse_default_colors()be called first. -
data_ahead()now works with wide-characters. -
slk_set()andslk_wset()now accept and store multibyte or multicolumn characters. -
start_color()now returns OK if colors have already been started.start_color()also returns ERR if it cannot allocate memory. -
pair_content()now returns -1 for consistency withinit_pair()if it corresponds to the default-color. -
unctrl()now returns null if its parameter does not correspond to an unsigned char.
Added extensions
Section titled “Added extensions”Experimental mouse version 2 supports wheel mice with buttons 4 and 5. This requires ABI 6 because it modifies the encoding of mouse events.
Experimental extended colors allows encoding of 256 foreground and background colors, e.g., with the xterm-256color or xterm-88color terminfo entries. This requires ABI 6 because it changes the size of cchar_t.
Added internal functions
Section titled “Added internal functions”_nc_check_termtype2_nc_resolve_uses2_nc_retrace_cptr_nc_retrace_cvoid_ptr_nc_retrace_void_ptr_nc_setup_term
Removed internal functions
Section titled “Removed internal functions”none
Modified internal functions
Section titled “Modified internal functions”_nc_insert_ch_nc_save_str_nc_trans_string