10e3d5408SPeter Wemm 27a69bbfbSPeter Wemm Announcing ncurses 5.2 30e3d5408SPeter Wemm 40e3d5408SPeter Wemm The ncurses (new curses) library is a free software emulation of 50e3d5408SPeter Wemm curses in System V Release 4.0, and more. It uses terminfo format, 60e3d5408SPeter Wemm supports pads and color and multiple highlights and forms characters 70e3d5408SPeter Wemm and function-key mapping, and has all the other SYSV-curses 80e3d5408SPeter Wemm enhancements over BSD curses. 90e3d5408SPeter Wemm 100e3d5408SPeter Wemm In mid-June 1995, the maintainer of 4.4BSD curses declared that he 110e3d5408SPeter Wemm considered 4.4BSD curses obsolete, and is encouraging the keepers of 120e3d5408SPeter Wemm Unix releases such as BSD/OS, freeBSD and netBSD to switch over to 130e3d5408SPeter Wemm ncurses. 140e3d5408SPeter Wemm 150e3d5408SPeter Wemm The ncurses code was developed under GNU/Linux. It should port easily 160e3d5408SPeter Wemm to any ANSI/POSIX-conforming UNIX. It has even been ported to OS/2 170e3d5408SPeter Wemm Warp! 180e3d5408SPeter Wemm 190e3d5408SPeter Wemm The distribution includes the library and support utilities, including 200e3d5408SPeter Wemm a terminfo compiler tic(1), a decompiler infocmp(1), clear(1), 210e3d5408SPeter Wemm tput(1), tset(1), and a termcap conversion tool captoinfo(1). Full 220e3d5408SPeter Wemm manual pages are provided for the library and tools. 230e3d5408SPeter Wemm 240e3d5408SPeter Wemm The ncurses distribution is available via anonymous FTP at the GNU 2518259542SPeter Wemm distribution site [1]ftp://ftp.gnu.org/pub/gnu/ncurses. 2618259542SPeter Wemm It is also available at [2]ftp://dickey.his.com/ncurses. 270e3d5408SPeter Wemm 280e3d5408SPeter Wemm Release Notes 290e3d5408SPeter Wemm 307a69bbfbSPeter Wemm This release is designed to be upward compatible from ncurses 5.0 and 317a69bbfbSPeter Wemm 5.1; very few applications will require recompilation, depending on 327a69bbfbSPeter Wemm the platform. These are the highlights from the change-log since 337a69bbfbSPeter Wemm ncurses 5.1 release. 340e3d5408SPeter Wemm 350e3d5408SPeter Wemm Interface changes: 367a69bbfbSPeter Wemm * change type of ospeed variable back to short to match its use in 377a69bbfbSPeter Wemm legacy applications. It was altered after ncurses 4.2 to speed_t 387a69bbfbSPeter Wemm to repair a type mismatch which was introduced after 1.9.4 in 397a69bbfbSPeter Wemm 1995. The principal users of termcap continued to use short, which 407a69bbfbSPeter Wemm is not the same size. 417a69bbfbSPeter Wemm NOTE: A few applications will have to be recompiled (about 1% of 427a69bbfbSPeter Wemm the programs in a typical Linux distribution, 10% of the programs 437a69bbfbSPeter Wemm that use ncurses). These are easy to identify with nm or strings. 447a69bbfbSPeter Wemm * remove a private function _nc_can_clear_with(), which was built 457a69bbfbSPeter Wemm with the configure --enable-expanded option but not used. 467a69bbfbSPeter Wemm * add several private functions (prefixed with "_nc_") for tracing 477a69bbfbSPeter Wemm chtype values in the debug library, and for better access and 487a69bbfbSPeter Wemm buffer limit checking. 490e3d5408SPeter Wemm 507a69bbfbSPeter Wemm New features and improvements: 517a69bbfbSPeter Wemm * rewrote tgoto() to make it better support existing termcap 527a69bbfbSPeter Wemm applications which use hardcoded strings rather than obtain all of 537a69bbfbSPeter Wemm their information from the termcap file. If the string does not 547a69bbfbSPeter Wemm appear to be a terminfo string (i.e., does not refer to a "%p" 557a69bbfbSPeter Wemm parameter, or terminfo-style padding), and termcap support is 567a69bbfbSPeter Wemm configured, tgoto() will interpret it as termcap. Otherwise, as 577a69bbfbSPeter Wemm before, it will use tparm(). 587a69bbfbSPeter Wemm * to ensure that the tgoto() changes work properly, added checks to 597a69bbfbSPeter Wemm tic which report capabilities that do not reference the expected 607a69bbfbSPeter Wemm number of parameters. 617a69bbfbSPeter Wemm * new configure script options: 627a69bbfbSPeter Wemm + option --disable-root-environ adds runtime checks which tell 637a69bbfbSPeter Wemm ncurses to disregard $TERMINFO and similar environment 647a69bbfbSPeter Wemm variables if the current user is root, or running 657a69bbfbSPeter Wemm setuid/setgid. 667a69bbfbSPeter Wemm + option --disable-assumed-color allows you to use the pre-5.1 677a69bbfbSPeter Wemm convention of default colors used for color-pair 0 to be 687a69bbfbSPeter Wemm configured (see assume_default_colors()). 697a69bbfbSPeter Wemm + implement configure script options that transform installed 707a69bbfbSPeter Wemm program names, e.g., --program-prefix, including the manpage 717a69bbfbSPeter Wemm names and cross references. 727a69bbfbSPeter Wemm + option --with-database allows you to specify a different 737a69bbfbSPeter Wemm terminfo source-file to install. On OS/2 EMX, the default is 747a69bbfbSPeter Wemm misc/emx.src, otherwise misc/terminfo.src 757a69bbfbSPeter Wemm + option --with-default-terminfo-dir allows you to specify the 767a69bbfbSPeter Wemm default terminfo database directory. 777a69bbfbSPeter Wemm + option --with-libtool allows you to build with libtool. 787a69bbfbSPeter Wemm NOTE: libtool uses a different notation for numbering shared 797a69bbfbSPeter Wemm library versions from the existing ncurses configuration. 807a69bbfbSPeter Wemm + option --with-manpage-tbl causes the manpages to be 817a69bbfbSPeter Wemm preprocessed by tbl(1) prior to installation, 827a69bbfbSPeter Wemm + option --without-curses-h causes the installation process to 837a69bbfbSPeter Wemm install curses.h as ncurses.h and make appropriate changes to 847a69bbfbSPeter Wemm headers and manpages. 857a69bbfbSPeter Wemm * modified configure script options: 867a69bbfbSPeter Wemm + change symbol used by the --install-prefix configure option 877a69bbfbSPeter Wemm from INSTALL_PREFIX to DESTDIR (the latter has become common 887a69bbfbSPeter Wemm usage although the name is misleading). 897a69bbfbSPeter Wemm + modify ld -rpath options (e.g., Linux, and Solaris) to use an 907a69bbfbSPeter Wemm absolute pathname for the build tree's lib directory, 917a69bbfbSPeter Wemm avoiding confusion with directories relative to the current 927a69bbfbSPeter Wemm one with the installed programs. 937a69bbfbSPeter Wemm + modified misc/run_tic.in to use tic -o, to eliminate 947a69bbfbSPeter Wemm dependency on $TERMINFO variable for installs. 957a69bbfbSPeter Wemm * terminfo database: 967a69bbfbSPeter Wemm + updated xterm terminfo entries to match XFree86 xterm patch 977a69bbfbSPeter Wemm #146. 987a69bbfbSPeter Wemm + added amiga-vnc, Matrix Orbital, and QNX qansi to 997a69bbfbSPeter Wemm misc/terminfo.src. 1007a69bbfbSPeter Wemm + added os2 entry to misc/emx.src. 1017a69bbfbSPeter Wemm + add S0 and E0 extensions to screen's terminfo entry since 1027a69bbfbSPeter Wemm otherwise the FreeBSD port makes it pass termcap equivalents 1037a69bbfbSPeter Wemm to tgoto, which would be misinterpreted by older versions of 1047a69bbfbSPeter Wemm ncurses. 1057a69bbfbSPeter Wemm * improvements to program usability: 1067a69bbfbSPeter Wemm + modify programs to use curses_version() string to report the 1077a69bbfbSPeter Wemm version of ncurses with which they are compiled rather than 1087a69bbfbSPeter Wemm the NCURSES_VERSION string. The function returns the patch 1097a69bbfbSPeter Wemm level in addition to the major and minor version numbers. 1107a69bbfbSPeter Wemm + modify tput program so it can be renamed or invoked via a 1117a69bbfbSPeter Wemm link as 'reset' or 'init', producing the same effect as 1127a69bbfbSPeter Wemm tput reset or tput init. 1137a69bbfbSPeter Wemm + add error checking to infocmp's -v and -m options to ensure 1147a69bbfbSPeter Wemm that the option value is indeed a number. 1157a69bbfbSPeter Wemm * improved performance: 1167a69bbfbSPeter Wemm + replace a lookup table in lib_vidattr.c used to decode 1177a69bbfbSPeter Wemm no_color_video with a logic expression which is faster. 1180e3d5408SPeter Wemm 1190e3d5408SPeter Wemm Major bug fixes: 1207a69bbfbSPeter Wemm * correct manlinks.sed script introduced in ncurses 5.1 to avoid 1217a69bbfbSPeter Wemm using ERE "\+", which is not understood by standard versions of 1227a69bbfbSPeter Wemm sed. This happens to work with GNU sed, but is not portable, and 1237a69bbfbSPeter Wemm was the initial motivation for this release. 1247a69bbfbSPeter Wemm * remove "hpux10.*" case from CF_SHARED_OPTS configure script macro. 1257a69bbfbSPeter Wemm This differed from the "hpux*" case by using reversed symbolic 1267a69bbfbSPeter Wemm links, which made the 5.1 version not match the configuration of 1277a69bbfbSPeter Wemm 5.0 shared libraries. 1287a69bbfbSPeter Wemm * guard against corrupt terminfo data: 1297a69bbfbSPeter Wemm + modify tparm() to disallow arithmetic on strings, analyze the 1307a69bbfbSPeter Wemm varargs list to read strings as strings and numbers as 1317a69bbfbSPeter Wemm numbers. 1327a69bbfbSPeter Wemm + modify tparm()'s internal function spop() to treat a null 1337a69bbfbSPeter Wemm pointer as an empty string. 1347a69bbfbSPeter Wemm + modify parse_format() in lib_tparm.c to ignore precision if 1357a69bbfbSPeter Wemm it is longer than 10000. 1367a69bbfbSPeter Wemm + rewrote limit checks in lib_mvcur.c using new functions 1377a69bbfbSPeter Wemm _nc_safe_strcat(), etc. Made other related changes to check 1387a69bbfbSPeter Wemm lengths used for strcat() and strcpy(). 1397a69bbfbSPeter Wemm * corrections to screen optimization: 1407a69bbfbSPeter Wemm + added special case in lib_vidattr.c to reset underline and 1417a69bbfbSPeter Wemm standout for devices that have no sgr0 defined. 1427a69bbfbSPeter Wemm + change handling of non_dest_scroll_region in tty_update.c to 1437a69bbfbSPeter Wemm clear text after it is shifted in rather than before shifting 1447a69bbfbSPeter Wemm out. Also correct row computation. 1457a69bbfbSPeter Wemm + modify rs2 capability in xterm-r6 and similar entries where 1467a69bbfbSPeter Wemm cursor save/restore bracketed the sequence for resetting 1477a69bbfbSPeter Wemm video attributes. The cursor restore would undo that. 1487a69bbfbSPeter Wemm * UTF-8 support: 1497a69bbfbSPeter Wemm + when checking LC_ALL, LC_CTYPE, and LANG environment 1507a69bbfbSPeter Wemm variables for UTF-8 locale, ignore those which are set to an 1517a69bbfbSPeter Wemm empty value, as per SUSV2. 1527a69bbfbSPeter Wemm + encode 0xFFFD in UTF-8 with 3 bytes, not 2. 1537a69bbfbSPeter Wemm + modify _nc_utf8_outch() to avoid sign-extension when checking 1547a69bbfbSPeter Wemm for out-of-range value. 1557a69bbfbSPeter Wemm * other library fixes: 1567a69bbfbSPeter Wemm + added checks for an empty $HOME environment variable, to 1577a69bbfbSPeter Wemm avoid retrieving terminfo descriptions from ./.terminfo . 1587a69bbfbSPeter Wemm + change functions _nc_parse_entry() and postprocess_termcap() 1597a69bbfbSPeter Wemm to avoid using strtok(), because it is non-reentrant. 1607a69bbfbSPeter Wemm + initialize fds[] array to 0's in _nc_timed_wait(); apparently 1617a69bbfbSPeter Wemm poll() only sets the revents members of that array when there 1627a69bbfbSPeter Wemm is activity corresponding to the related file. 1637a69bbfbSPeter Wemm + add a check for null pointer in Make_Enum_Type(). 1647a69bbfbSPeter Wemm + fix a heap problem with the c++ binding. 1657a69bbfbSPeter Wemm + correct missing includes for <string.h> in several places, 1667a69bbfbSPeter Wemm including the C++ binding. This is not noted by gcc unless we 1677a69bbfbSPeter Wemm use the -fno-builtin option. 1687a69bbfbSPeter Wemm * several fixes for tic: 1697a69bbfbSPeter Wemm + add a check for empty buffers returned by fgets() in 1707a69bbfbSPeter Wemm comp_scan.c next_char() function, in case tic is run on a 1717a69bbfbSPeter Wemm non-text file (fixes a core dump). 1727a69bbfbSPeter Wemm + modify tic to verify that its inputs are really files, in 1737a69bbfbSPeter Wemm case someone tries to read a directory (or /dev/zero). 1747a69bbfbSPeter Wemm + correct an uninitialized parameter to open_tempfile() in 1757a69bbfbSPeter Wemm tic.c which made "tic -I" give an ambiguous error message 1767a69bbfbSPeter Wemm about tmpnam. 1777a69bbfbSPeter Wemm + correct logic in adjust_cancels(), which did not check both 1787a69bbfbSPeter Wemm alternatives when reclassifying an extended name between 1797a69bbfbSPeter Wemm boolean, number and string, causing an infinite loop in tic. 1807a69bbfbSPeter Wemm * using new checks in tic for parameter counts in capability 1817a69bbfbSPeter Wemm strings, found/fixed several errors both in the terminfo database 1827a69bbfbSPeter Wemm and in the include/Caps file. 1837a69bbfbSPeter Wemm + modified several terminfo capability strings, including the 1847a69bbfbSPeter Wemm definitions for setaf, setab, in include/Caps to indicate 1857a69bbfbSPeter Wemm that the entries are parameterized. This information is used 1867a69bbfbSPeter Wemm to tell which strings are translated when converting to 1877a69bbfbSPeter Wemm termcap. This fixes a problem where the generated termcap 1887a69bbfbSPeter Wemm would contain a spurious "%p1" for the terminfo "%p1%d". 1897a69bbfbSPeter Wemm + correct parameter counts in include/Caps for dclk as well as 1907a69bbfbSPeter Wemm some printer-specific capabilities: csnm, defc, scs, scsd, 1917a69bbfbSPeter Wemm smgtp, smglp. 1927a69bbfbSPeter Wemm * various fixes for install scripts used to support configure 1937a69bbfbSPeter Wemm --srcdir and --with-install-prefix. 1947a69bbfbSPeter Wemm * correct several mismatches between manpage filename and ".TH" 1957a69bbfbSPeter Wemm directives, renaming dft_fgbg.3x to default_colors.3x and 1967a69bbfbSPeter Wemm menu_attribs.3x to menu_attributes.3x. 1977a69bbfbSPeter Wemm 1987a69bbfbSPeter Wemm Portability: 1997a69bbfbSPeter Wemm * configure script: 2007a69bbfbSPeter Wemm + newer config.guess, config.sub, including changes to support 2017a69bbfbSPeter Wemm OS/2 EMX. The configure script for OS/2 EMX still relies on a 2027a69bbfbSPeter Wemm patch since there is no (working) support for that platform 2037a69bbfbSPeter Wemm in the main autoconf distribution. 2047a69bbfbSPeter Wemm + make configure script checks on variables $GCC and $GXX 2057a69bbfbSPeter Wemm consistently compare against 'yes' rather than test if they 2067a69bbfbSPeter Wemm are nonnull, since either may be set to the corresponding 2077a69bbfbSPeter Wemm name of the C or C++ compiler. 2087a69bbfbSPeter Wemm + change configure script to use AC_CANONICAL_SYSTEM rather 2097a69bbfbSPeter Wemm than AC_CANONICAL_HOST, which means that configure --target 2107a69bbfbSPeter Wemm will set a default program-prefix. 2117a69bbfbSPeter Wemm + modify the check for big-core to force a couple of memory 2127a69bbfbSPeter Wemm accesses, which may work as needed for older/less-capable 2137a69bbfbSPeter Wemm machines (if not, there's still the explicit configure 2147a69bbfbSPeter Wemm option). 2157a69bbfbSPeter Wemm + modify configure test for tcgetattr() to allow for old 2167a69bbfbSPeter Wemm implementations, e.g., on BeOS, which only defined it as a 2177a69bbfbSPeter Wemm macro. 2187a69bbfbSPeter Wemm + add configure check for filesystems (such as OS/2 EMX) which 2197a69bbfbSPeter Wemm do not distinguish between upper/lowercase filenames, use 2207a69bbfbSPeter Wemm this to fix tags rules in makefiles. 2217a69bbfbSPeter Wemm + add MKncurses_def.sh to generate fallback definitions for 2227a69bbfbSPeter Wemm ncurses_cfg.h, to quiet gcc -Wundef warnings, modified 2237a69bbfbSPeter Wemm ifdef's in code to consistently use "#if" rather than 2247a69bbfbSPeter Wemm "#ifdef". 2257a69bbfbSPeter Wemm + change most remaining unquoted parameters of test in 2267a69bbfbSPeter Wemm configure script to use quotes, for instance fixing a problem 2277a69bbfbSPeter Wemm in the --disable-database option. 2287a69bbfbSPeter Wemm + modify scripts so that "make install.data" works on OS/2 EMX. 2297a69bbfbSPeter Wemm + modify scripts and makefiles so the Ada95 directory builds on 2307a69bbfbSPeter Wemm OS/2 EMX. 2317a69bbfbSPeter Wemm * library: 2327a69bbfbSPeter Wemm + replaced case-statement in _nc_tracebits() for CSIZE with a 2337a69bbfbSPeter Wemm table to simplify working around implementations that define 2347a69bbfbSPeter Wemm random combinations of the related macros to zero. 2357a69bbfbSPeter Wemm + improved OS/2 mouse support by retrying as a 2-button mouse 2367a69bbfbSPeter Wemm if code fails to set up a 3-button mouse. 2377a69bbfbSPeter Wemm + added private entrypoint _nc_basename(), used to consolidate 2387a69bbfbSPeter Wemm related code in progs, as well as accommodating OS/2 EMX 2397a69bbfbSPeter Wemm pathnames. 2407a69bbfbSPeter Wemm + alter definition of NCURSES_CONST to make it non-empty. 2417a69bbfbSPeter Wemm + redefine 'TEXT' in menu.h for AMIGA, since it is reported to 2427a69bbfbSPeter Wemm have an (unspecified) symbol conflict. 2437a69bbfbSPeter Wemm * programs: 2447a69bbfbSPeter Wemm + modified progs/tset.c and tack/sysdep.c to build with sgttyb 2457a69bbfbSPeter Wemm interface if neither termio or termios is available. Tested 2467a69bbfbSPeter Wemm this with FreeBSD 2.1.5 (which does have termios - but the 2477a69bbfbSPeter Wemm sgttyb does work). 2480e3d5408SPeter Wemm 2490e3d5408SPeter Wemm Features of Ncurses 2500e3d5408SPeter Wemm 2510e3d5408SPeter Wemm The ncurses package is fully compatible with SVr4 (System V Release 4) 2520e3d5408SPeter Wemm curses: 2530e3d5408SPeter Wemm * All 257 of the SVr4 calls have been implemented (and are 2540e3d5408SPeter Wemm documented). 2550e3d5408SPeter Wemm * Full support for SVr4 curses features including keyboard mapping, 2560e3d5408SPeter Wemm color, forms-drawing with ACS characters, and automatic 2570e3d5408SPeter Wemm recognition of keypad and function keys. 2580e3d5408SPeter Wemm * An emulation of the SVr4 panels library, supporting a stack of 2590e3d5408SPeter Wemm windows with backing store, is included. 2600e3d5408SPeter Wemm * An emulation of the SVr4 menus library, supporting a uniform but 2610e3d5408SPeter Wemm flexible interface for menu programming, is included. 2620e3d5408SPeter Wemm * An emulation of the SVr4 form library, supporting data collection 2630e3d5408SPeter Wemm through on-screen forms, is included. 2640e3d5408SPeter Wemm * Binary terminfo entries generated by the ncurses tic(1) 2650e3d5408SPeter Wemm implementation are bit-for-bit-compatible with the entry format 2660e3d5408SPeter Wemm SVr4 curses uses. 2670e3d5408SPeter Wemm * The utilities have options to allow you to filter terminfo entries 2680e3d5408SPeter Wemm for use with less capable curses/terminfo versions such as the 2690e3d5408SPeter Wemm HP/UX and AIX ports. 2700e3d5408SPeter Wemm 2710e3d5408SPeter Wemm The ncurses package also has many useful extensions over SVr4: 2720e3d5408SPeter Wemm * The API is 8-bit clean and base-level conformant with the X/OPEN 2730e3d5408SPeter Wemm curses specification, XSI curses (that is, it implements all BASE 2740e3d5408SPeter Wemm level features, but not all EXTENDED features). Most 2750e3d5408SPeter Wemm EXTENDED-level features not directly concerned with wide-character 2760e3d5408SPeter Wemm support are implemented, including many function calls not 2770e3d5408SPeter Wemm supported under SVr4 curses (but portability of all calls is 2780e3d5408SPeter Wemm documented so you can use the SVr4 subset only). 2791759abf3SPeter Wemm * Unlike SVr3 curses, ncurses can write to the rightmost-bottommost 2800e3d5408SPeter Wemm corner of the screen if your terminal has an insert-character 2810e3d5408SPeter Wemm capability. 2820e3d5408SPeter Wemm * Ada95 and C++ bindings. 2830e3d5408SPeter Wemm * Support for mouse event reporting with X Window xterm and OS/2 2840e3d5408SPeter Wemm console windows. 2850e3d5408SPeter Wemm * Extended mouse support via Alessandro Rubini's gpm package. 2860e3d5408SPeter Wemm * The function wresize() allows you to resize windows, preserving 2870e3d5408SPeter Wemm their data. 2880e3d5408SPeter Wemm * The function use_default_colors() allows you to use the terminal's 2890e3d5408SPeter Wemm default colors for the default color pair, achieving the effect of 2900e3d5408SPeter Wemm transparent colors. 2910e3d5408SPeter Wemm * The functions keyok() and define_key() allow you to better control 2920e3d5408SPeter Wemm the use of function keys, e.g., disabling the ncurses KEY_MOUSE, 2930e3d5408SPeter Wemm or by defining more than one control sequence to map to a given 2940e3d5408SPeter Wemm key code. 2950e3d5408SPeter Wemm * Support for 16-color terminals, such as aixterm and XFree86 xterm. 2960e3d5408SPeter Wemm * Better cursor-movement optimization. The package now features a 2970e3d5408SPeter Wemm cursor-local-movement computation more efficient than either BSD's 2980e3d5408SPeter Wemm or System V's. 2990e3d5408SPeter Wemm * Super hardware scrolling support. The screen-update code 3000e3d5408SPeter Wemm incorporates a novel, simple, and cheap algorithm that enables it 3010e3d5408SPeter Wemm to make optimal use of hardware scrolling, line-insertion, and 3020e3d5408SPeter Wemm line-deletion for screen-line movements. This algorithm is more 3030e3d5408SPeter Wemm powerful than the 4.4BSD curses quickch() routine. 3040e3d5408SPeter Wemm * Real support for terminals with the magic-cookie glitch. The 3050e3d5408SPeter Wemm screen-update code will refrain from drawing a highlight if the 3060e3d5408SPeter Wemm magic- cookie unattributed spaces required just before the 3070e3d5408SPeter Wemm beginning and after the end would step on a non-space character. 3080e3d5408SPeter Wemm It will automatically shift highlight boundaries when doing so 3090e3d5408SPeter Wemm would make it possible to draw the highlight without changing the 3100e3d5408SPeter Wemm visual appearance of the screen. 3110e3d5408SPeter Wemm * It is possible to generate the library with a list of pre-loaded 3120e3d5408SPeter Wemm fallback entries linked to it so that it can serve those terminal 3130e3d5408SPeter Wemm types even when no terminfo tree or termcap file is accessible 3140e3d5408SPeter Wemm (this may be useful for support of screen-oriented programs that 3150e3d5408SPeter Wemm must run in single-user mode). 3160e3d5408SPeter Wemm * The tic(1)/captoinfo utility provided with ncurses has the ability 3170e3d5408SPeter Wemm to translate many termcaps from the XENIX, IBM and AT&T extension 3180e3d5408SPeter Wemm sets. 3190e3d5408SPeter Wemm * A BSD-like tset(1) utility is provided. 3200e3d5408SPeter Wemm * The ncurses library and utilities will automatically read terminfo 3210e3d5408SPeter Wemm entries from $HOME/.terminfo if it exists, and compile to that 3220e3d5408SPeter Wemm directory if it exists and the user has no write access to the 3230e3d5408SPeter Wemm system directory. This feature makes it easier for users to have 3240e3d5408SPeter Wemm personal terminfo entries without giving up access to the system 3250e3d5408SPeter Wemm terminfo directory. 3260e3d5408SPeter Wemm * You may specify a path of directories to search for compiled 3270e3d5408SPeter Wemm descriptions with the environment variable TERMINFO_DIRS (this 3280e3d5408SPeter Wemm generalizes the feature provided by TERMINFO under stock System 3290e3d5408SPeter Wemm V.) 3300e3d5408SPeter Wemm * In terminfo source files, use capabilities may refer not just to 3310e3d5408SPeter Wemm other entries in the same source file (as in System V) but also to 3320e3d5408SPeter Wemm compiled entries in either the system terminfo directory or the 3330e3d5408SPeter Wemm user's $HOME/.terminfo directory. 3340e3d5408SPeter Wemm * A script (capconvert) is provided to help BSD users transition 3350e3d5408SPeter Wemm from termcap to terminfo. It gathers the information in a TERMCAP 3360e3d5408SPeter Wemm environment variable and/or a ~/.termcap local entries file and 3370e3d5408SPeter Wemm converts it to an equivalent local terminfo tree under 3380e3d5408SPeter Wemm $HOME/.terminfo. 3390e3d5408SPeter Wemm * Automatic fallback to the /etc/termcap file can be compiled in 3400e3d5408SPeter Wemm when it is not possible to build a terminfo tree. This feature is 3410e3d5408SPeter Wemm neither fast nor cheap, you don't want to use it unless you have 3420e3d5408SPeter Wemm to, but it's there. 3430e3d5408SPeter Wemm * The table-of-entries utility toe makes it easy for users to see 3440e3d5408SPeter Wemm exactly what terminal types are available on the system. 3450e3d5408SPeter Wemm * The library meets the XSI requirement that every macro entry point 3460e3d5408SPeter Wemm have a corresponding function which may be linked (and will be 3470e3d5408SPeter Wemm prototype-checked) if the macro definition is disabled with 3480e3d5408SPeter Wemm #undef. 3490e3d5408SPeter Wemm * An HTML "Introduction to Programming with NCURSES" document 3500e3d5408SPeter Wemm provides a narrative introduction to the curses programming 3510e3d5408SPeter Wemm interface. 3520e3d5408SPeter Wemm 3530e3d5408SPeter Wemm State of the Package 3540e3d5408SPeter Wemm 3550e3d5408SPeter Wemm Numerous bugs present in earlier versions have been fixed; the library 3560e3d5408SPeter Wemm is far more reliable than it used to be. Bounds checking in many 3570e3d5408SPeter Wemm `dangerous' entry points has been improved. The code is now type-safe 3580e3d5408SPeter Wemm according to gcc -Wall. The library has been checked for malloc leaks 3590e3d5408SPeter Wemm and arena corruption by the Purify memory-allocation tester. 3600e3d5408SPeter Wemm 3610e3d5408SPeter Wemm The ncurses code has been tested with a wide variety of applications 3620e3d5408SPeter Wemm including (versions starting with those noted): 3630e3d5408SPeter Wemm 3641759abf3SPeter Wemm cdk 36515589c42SPeter Wemm Curses Development Kit 36618259542SPeter Wemm [3]http://www.vexus.ca/CDK.html 36718259542SPeter Wemm [4]http://dickey.his.com/cdk. 3681759abf3SPeter Wemm 3690e3d5408SPeter Wemm ded 37015589c42SPeter Wemm directory-editor 37115589c42SPeter Wemm [5]http://dickey.his.com/ded. 3720e3d5408SPeter Wemm 3730e3d5408SPeter Wemm dialog 3740e3d5408SPeter Wemm the underlying application used in Slackware's setup, and the 3750e3d5408SPeter Wemm basis for similar applications on GNU/Linux. 37615589c42SPeter Wemm [6]http://dickey.his.com/dialog. 3770e3d5408SPeter Wemm 3781759abf3SPeter Wemm lynx 3790e3d5408SPeter Wemm the character-screen WWW browser 38015589c42SPeter Wemm [7]http://lynx.isc.org/release. 3810e3d5408SPeter Wemm 3820e3d5408SPeter Wemm Midnight Commander 4.1 3830e3d5408SPeter Wemm file manager 38418259542SPeter Wemm [8]www.gnome.org/mc/. 3850e3d5408SPeter Wemm 3861759abf3SPeter Wemm mutt 3870e3d5408SPeter Wemm mail utility 38818259542SPeter Wemm [9]http://www.mutt.org. 3890e3d5408SPeter Wemm 3901759abf3SPeter Wemm ncftp 3910e3d5408SPeter Wemm file-transfer utility 39218259542SPeter Wemm [10]http://www.ncftp.com. 3930e3d5408SPeter Wemm 3940e3d5408SPeter Wemm nvi 3950e3d5408SPeter Wemm New vi versions 1.50 are able to use ncurses versions 1.9.7 and 3960e3d5408SPeter Wemm later. 39718259542SPeter Wemm [11]http://www.bostic.com/vi/. 3980e3d5408SPeter Wemm 3991759abf3SPeter Wemm tin 4001759abf3SPeter Wemm newsreader, supporting color, MIME 40118259542SPeter Wemm [12]http://www.tin.org. 4021759abf3SPeter Wemm 4030e3d5408SPeter Wemm taper 4040e3d5408SPeter Wemm tape archive utility 40518259542SPeter Wemm [13]http://members.iinet.net.au/~yusuf/taper/. 4060e3d5408SPeter Wemm 4070e3d5408SPeter Wemm vh-1.6 4080e3d5408SPeter Wemm Volks-Hypertext browser for the Jargon File 40918259542SPeter Wemm [14]http://www.bg.debian.org/Packages/unstable/text/vh.html. 4100e3d5408SPeter Wemm 4110e3d5408SPeter Wemm as well as some that use ncurses for the terminfo support alone: 4120e3d5408SPeter Wemm 4131759abf3SPeter Wemm minicom 4140e3d5408SPeter Wemm terminal emulator 41518259542SPeter Wemm [15]http://www.pp.clinet.fi/~walker/minicom.html. 4160e3d5408SPeter Wemm 4170e3d5408SPeter Wemm vile 41815589c42SPeter Wemm vi-like-emacs 41918259542SPeter Wemm [16]http://dickey.his.com/vile. 4200e3d5408SPeter Wemm 4210e3d5408SPeter Wemm The ncurses distribution includes a selection of test programs 4220e3d5408SPeter Wemm (including a few games). 4230e3d5408SPeter Wemm 4240e3d5408SPeter WemmWho's Who and What's What 4250e3d5408SPeter Wemm 42618259542SPeter Wemm The original developers of ncurses are [17]Zeyd Ben-Halim and [18]Eric 42718259542SPeter Wemm S. Raymond. Ongoing work is being done by [19]Thomas Dickey and 42818259542SPeter Wemm [20]J�rgen Pfeifer. [21]Thomas Dickey acts as the maintainer for the 4290e3d5408SPeter Wemm Free Software Foundation, which holds the copyright on ncurses. 43018259542SPeter Wemm Contact the current maintainers at [22]bug-ncurses@gnu.org. 4310e3d5408SPeter Wemm 4320e3d5408SPeter Wemm To join the ncurses mailing list, please write email to 4330e3d5408SPeter Wemm bug-ncurses-request@gnu.org containing the line: 4340e3d5408SPeter Wemm subscribe <name>@<host.domain> 4350e3d5408SPeter Wemm 4360e3d5408SPeter Wemm This list is open to anyone interested in helping with the development 4370e3d5408SPeter Wemm and testing of this package. 4380e3d5408SPeter Wemm 4390e3d5408SPeter Wemm Beta versions of ncurses and patches to the current release are made 44018259542SPeter Wemm available at [23]ftp://dickey.his.com/ncurses. 4410e3d5408SPeter Wemm 4420e3d5408SPeter WemmFuture Plans 4430e3d5408SPeter Wemm 4440e3d5408SPeter Wemm * Extended-level XPG4 conformance, with internationalization 4450e3d5408SPeter Wemm support. 4460e3d5408SPeter Wemm * Ports to more systems, including DOS and Windows. 4470e3d5408SPeter Wemm 4480e3d5408SPeter Wemm We need people to help with these projects. If you are interested in 4490e3d5408SPeter Wemm working on them, please join the ncurses list. 4500e3d5408SPeter Wemm 4510e3d5408SPeter WemmOther Related Resources 4520e3d5408SPeter Wemm 4530e3d5408SPeter Wemm The distribution includes and uses a version of the terminfo-format 4540e3d5408SPeter Wemm terminal description file maintained by Eric Raymond. 45518259542SPeter Wemm [24]http://earthspace.net/~esr/terminfo. 4560e3d5408SPeter Wemm 4570e3d5408SPeter Wemm You can find lots of information on terminal-related topics not 45818259542SPeter Wemm covered in the terminfo file at [25]Richard Shuford's archive. 4590e3d5408SPeter Wemm 4600e3d5408SPeter WemmReferences 4610e3d5408SPeter Wemm 4621759abf3SPeter Wemm 1. ftp://ftp.gnu.org/pub/gnu/ncurses 46315589c42SPeter Wemm 2. ftp://dickey.his.com/ncurses 4641759abf3SPeter Wemm 3. http://www.vexus.ca/CDK.html 46515589c42SPeter Wemm 4. http://dickey.his.com/cdk/cdk.html 46615589c42SPeter Wemm 5. http://dickey.his.com/ded/ded.html 46715589c42SPeter Wemm 6. http://dickey.his.com/dialog/dialog.html 46815589c42SPeter Wemm 7. http://lynx.isc.org/release/ 4697a69bbfbSPeter Wemm 8. file://localhost/usr/build/ncurses/ncurses-5.2-20001021/doc/html/www.gnome.org/mc/ 47018259542SPeter Wemm 9. http://www.mutt.org/ 47118259542SPeter Wemm 10. http://www.ncftp.com/ 47218259542SPeter Wemm 11. http://www.bostic.com/vi/ 47318259542SPeter Wemm 12. http://www.tin.org/ 47418259542SPeter Wemm 13. http://members.iinet.net.au/~yusuf/taper/ 47518259542SPeter Wemm 14. http://www.bg.debian.org/Packages/unstable/text/vh.html 47618259542SPeter Wemm 15. http://www.pp.clinet.fi/~walker/minicom.html 47718259542SPeter Wemm 16. http://dickey.his.com/vile/vile.html 47818259542SPeter Wemm 17. mailto:zmbenhal@netcom.com 47918259542SPeter Wemm 18. http://www.ccil.org/~esr/home.html 48018259542SPeter Wemm 19. mailto:dickey@herndon4.his.com 48118259542SPeter Wemm 20. mailto:juergen.pfeifer@gmx.net 48218259542SPeter Wemm 21. mailto:dickey@herndon4.his.com 48318259542SPeter Wemm 22. mailto:bug-ncurses@gnu.org 48418259542SPeter Wemm 23. ftp://dickey.his.com/ncurses 48518259542SPeter Wemm 24. http://earthspace.net/~esr/terminfo 48618259542SPeter Wemm 25. http://www.cs.utk.edu/~shuford/terminal_index.html 487