diff --git a/Ada95/aclocal.m4 b/Ada95/aclocal.m4 index 69d5f3c0..99a89cec 100644 --- a/Ada95/aclocal.m4 +++ b/Ada95/aclocal.m4 @@ -1,5 +1,5 @@ dnl*************************************************************************** -dnl Copyright (c) 2010 Free Software Foundation, Inc. * +dnl Copyright (c) 2010,2011 Free Software Foundation, Inc. * dnl * dnl Permission is hereby granted, free of charge, to any person obtaining a * dnl copy of this software and associated documentation files (the * @@ -28,7 +28,7 @@ dnl*************************************************************************** dnl dnl Author: Thomas E. Dickey dnl -dnl $Id: aclocal.m4,v 1.19 2011/01/15 21:51:05 tom Exp $ +dnl $Id: aclocal.m4,v 1.20 2011/01/22 19:46:50 tom Exp $ dnl Macros used in NCURSES Ada95 auto-configuration script. dnl dnl These macros are maintained separately from NCURSES. The copyright on diff --git a/Ada95/gen/Makefile.in b/Ada95/gen/Makefile.in index a6a714a3..7292d27d 100644 --- a/Ada95/gen/Makefile.in +++ b/Ada95/gen/Makefile.in @@ -1,5 +1,5 @@ ############################################################################## -# Copyright (c) 1998-2009,2010 Free Software Foundation, Inc. # +# Copyright (c) 1998-2010,2011 Free Software Foundation, Inc. # # # # Permission is hereby granted, free of charge, to any person obtaining a # # copy of this software and associated documentation files (the "Software"), # @@ -28,7 +28,7 @@ # # Author: Juergen Pfeifer, 1996 # -# $Id: Makefile.in,v 1.70 2011/01/09 19:43:06 tom Exp $ +# $Id: Makefile.in,v 1.71 2011/01/22 19:47:09 tom Exp $ # .SUFFIXES: diff --git a/INSTALL b/INSTALL index c8f78074..15d41afd 100644 --- a/INSTALL +++ b/INSTALL @@ -25,7 +25,7 @@ -- sale, use or other dealings in this Software without prior written -- -- authorization. -- ------------------------------------------------------------------------------- --- $Id: INSTALL,v 1.148 2010/10/23 22:41:32 tom Exp $ +-- $Id: INSTALL,v 1.151 2011/01/23 00:06:15 tom Exp $ --------------------------------------------------------------------- How to install Ncurses/Terminfo on your system --------------------------------------------------------------------- @@ -1068,6 +1068,60 @@ COMPATIBILITY WITH OLDER VERSIONS OF NCURSES: you may encounter when building a system with different versions of ncurses: + 5.8 (??? ?, 2011) + 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 tiparm function based on review of X/Open Curses Issue 7. + + + change internal _nc_has_mouse function to public has_mouse function + + Added extensions: + + + add a few more functions to support the NCURSES_OPAQUE feature: + get_escdelay, is_pad, is_subwin + + 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: + _nc_makenew (some configurations replace by _nc_makenew_sp) + + Modified internal functions: + _nc_UpdateAttrs + _nc_get_hash_table + _nc_has_mouse + _nc_insert_ch + _nc_wgetch + 5.7 (November 2, 2008) Interface changes: diff --git a/NEWS b/NEWS index c5d5b3d7..77f45d20 100644 --- a/NEWS +++ b/NEWS @@ -1,5 +1,5 @@ ------------------------------------------------------------------------------- --- Copyright (c) 1998-2009,2010 Free Software Foundation, Inc. -- +-- Copyright (c) 1998-2010,2011 Free Software Foundation, Inc. -- -- -- -- Permission is hereby granted, free of charge, to any person obtaining a -- -- copy of this software and associated documentation files (the -- @@ -25,7 +25,7 @@ -- sale, use or other dealings in this Software without prior written -- -- authorization. -- ------------------------------------------------------------------------------- --- $Id: NEWS,v 1.1634 2011/01/15 21:50:45 tom Exp $ +-- $Id: NEWS,v 1.1638 2011/01/22 21:23:29 tom Exp $ ------------------------------------------------------------------------------- This is a log of changes that ncurses has gone through since Zeyd started @@ -45,6 +45,16 @@ See the AUTHORS file for the corresponding full names. Changes through 1.9.9e did not credit all contributions; it is not possible to add this information. +20110122 + + start documenting interface changes for upcoming 5.8 release. + + correct limit-checks in derwin(). + + correct limit-checks in newwin(), to ensure that windows have nonzero + size (report by Garrett Cooper). + + fix a missing "weak" declaration for pthread_kill (patch by Nicholas + Alcock). + + improve documentation of KEY_ENTER in curs_getch.3x manpage (prompted + by discussion with Kevin Martin). + 20110115 + modify Ada95/configure script to make the --with-curses-dir option work without requiring the --with-ncurses option. diff --git a/dist.mk b/dist.mk index c4603a9c..c791b6a3 100644 --- a/dist.mk +++ b/dist.mk @@ -1,5 +1,5 @@ ############################################################################## -# Copyright (c) 1998-2009,2010 Free Software Foundation, Inc. # +# Copyright (c) 1998-2010,2011 Free Software Foundation, Inc. # # # # Permission is hereby granted, free of charge, to any person obtaining a # # copy of this software and associated documentation files (the "Software"), # @@ -25,7 +25,7 @@ # use or other dealings in this Software without prior written # # authorization. # ############################################################################## -# $Id: dist.mk,v 1.790 2011/01/09 19:24:35 tom Exp $ +# $Id: dist.mk,v 1.792 2011/01/22 19:47:14 tom Exp $ # Makefile for creating ncurses distributions. # # This only needs to be used directly as a makefile by developers, but @@ -37,7 +37,7 @@ SHELL = /bin/sh # These define the major/minor/patch versions of ncurses. NCURSES_MAJOR = 5 NCURSES_MINOR = 7 -NCURSES_PATCH = 20110115 +NCURSES_PATCH = 20110122 # We don't append the patch to the version, since this only applies to releases VERSION = $(NCURSES_MAJOR).$(NCURSES_MINOR) diff --git a/doc/html/man/adacurses-config.1.html b/doc/html/man/adacurses-config.1.html deleted file mode 100644 index 339fc300..00000000 --- a/doc/html/man/adacurses-config.1.html +++ /dev/null @@ -1,96 +0,0 @@ - - - -
-- -ADACURSES(1) User Commands ADACURSES(1) - - - - --
- adacurses-config - helper script for AdaCurses libraries - - --
- adacurses-config [options] - - --
- This is a shell script which simplifies configuring an - application to use the AdaCurses library binding to - ncurses. - - --
- --cflags - echos the gnat (Ada compiler) flags needed to com- - pile with adacurses - - --libs echos the gnat libraries needed to link with - adacurses - - --version - echos the release+patchdate version of adacurses - - --help prints this message - - --
- curses(3x) - - This describes ncurses version 5.7 (patch 20110108). - - - - ADACURSES(1) --
infocmp(1m), curses(3x), terminfo(5) - This describes ncurses version 5.7 (patch 20110108). + This describes ncurses version 5.7 (patch 20110122).diff --git a/doc/html/man/clear.1.html b/doc/html/man/clear.1.html index c152ecfe..35fd3b7d 100644 --- a/doc/html/man/clear.1.html +++ b/doc/html/man/clear.1.html @@ -69,7 +69,7 @@
tput(1), terminfo(5) - This describes ncurses version 5.7 (patch 20110108). + This describes ncurses version 5.7 (patch 20110122). diff --git a/doc/html/man/curs_add_wch.3x.html b/doc/html/man/curs_add_wch.3x.html index 82fcdc49..de4bd25b 100644 --- a/doc/html/man/curs_add_wch.3x.html +++ b/doc/html/man/curs_add_wch.3x.html @@ -1,7 +1,7 @@ @@ -98,6 +98,76 @@ able performance gain might be seen by using the *echo* functions instead of their equivalents. + Line Graphics + Like addch(3x), addch_wch accepts symbols which make it + simple to draw lines and other frequently used special + characters. These symbols correspond to the same VT100 + line-drawing set as addch(3x). + + Name Unicode Default Description + ---------------------------------------------------------------- + WACS_BLOCK 0x25ae # solid square block + WACS_BOARD 0x2592 # board of squares + WACS_BTEE 0x2534 + bottom tee + WACS_BULLET 0x00b7 o bullet + WACS_CKBOARD 0x2592 : checker board (stipple) + + WACS_DARROW 0x2193 v arrow pointing down + WACS_DEGREE 0x00b0 ' degree symbol + WACS_DIAMOND 0x25c6 + diamond + WACS_GEQUAL 0x2265 > greater-than-or-equal-to + WACS_HLINE 0x2500 - horizontal line + WACS_LANTERN 0x2603 # lantern symbol + WACS_LARROW 0x2190 < arrow pointing left + WACS_LEQUAL 0x2264 < less-than-or-equal-to + WACS_LLCORNER 0x2514 + lower left-hand corner + WACS_LRCORNER 0x2518 + lower right-hand corner + WACS_LTEE 0x2524 + left tee + WACS_NEQUAL 0x2260 ! not-equal + WACS_PI 0x03c0 * greek pi + WACS_PLMINUS 0x00b1 # plus/minus + WACS_PLUS 0x253c + plus + WACS_RARROW 0x2192 > arrow pointing right + WACS_RTEE 0x251c + right tee + WACS_S1 0x23ba - scan line 1 + WACS_S3 0x23bb - scan line 3 + WACS_S7 0x23bc - scan line 7 + WACS_S9 0x23bd _ scan line 9 + WACS_STERLING 0x00a3 f pound-sterling symbol + WACS_TTEE 0x252c + top tee + WACS_UARROW 0x2191 ^ arrow pointing up + WACS_ULCORNER 0x250c + upper left-hand corner + WACS_URCORNER 0x2510 + upper right-hand corner + WACS_VLINE 0x2502 | vertical line + + The wide-character configuration of ncurses also defines + symbols for thick- and double-lines: + + Name Unicode Default Description + --------------------------------------------------------------------- + WACS_T_ULCORNER 0x250f + thick upper left corner + WACS_T_LLCORNER 0x2517 + thick lower left corner + WACS_T_URCORNER 0x2513 + thick upper right corner + WACS_T_LRCORNER 0x251b + thick lower right corner + WACS_T_LTEE 0x252b + thick tee pointing right + WACS_T_RTEE 0x2523 + thick tee pointing left + WACS_T_BTEE 0x253b + thick tee pointing up + WACS_T_TTEE 0x2533 + thick tee pointing down + WACS_T_HLINE 0x2501 - thick horizontal line + WACS_T_VLINE 0x2503 | thick vertical line + WACS_T_PLUS 0x254b + thick large plus or crossover + WACS_D_ULCORNER 0x2554 + double upper left corner + WACS_D_LLCORNER 0x255a + double lower left corner + WACS_D_URCORNER 0x2557 + double upper right corner + WACS_D_LRCORNER 0x255d + double lower right corner + WACS_D_RTEE 0x2563 + double tee pointing left + WACS_D_LTEE 0x2560 + double tee pointing right + WACS_D_BTEE 0x2569 + double tee pointing up + WACS_D_TTEE 0x2566 + double tee pointing down + WACS_D_HLINE 0x2550 - double horizontal line + WACS_D_VLINE 0x2551 | double vertical line + WACS_D_PLUS 0x256c + double large plus or crossover +
@@ -117,13 +187,29 @@
- All these functions are described in the XSI Curses stan- - dard, Issue 4. The defaults specified for forms-drawing - characters apply in the POSIX locale. + All of these functions are described in the XSI Curses + standard, Issue 4. The defaults specified for line-draw- + ing characters apply in the POSIX locale. - XSI documents constants beginning with WACS_ which are - used for line-drawing. Those are not currently imple- - mented in ncurses. + X/Open Curses makes it clear that the WACS_ symbols should + be defined as a pointer to cchar_t data, e.g., in the dis- + cussion of border_set. A few implementations are problem- + atic: + + o NetBSD curses defines the symbols as a wchar_t within + a cchar_t. + + o HPUX curses equates some of the ACS_ symbols to the + analogous WACS_ symbols as if the ACS_ symbols were + wide characters. The misdefined symbols are the + arrows and other symbols which are not used for line- + drawing. + + X/Open Curses does not define symbols for thick- or dou- + ble-lines. SVr4 curses implementations defined their + line-drawing symbols in terms of intermediate symbols. + This implementation extends those symbols, providing new + definitions which are not in the SVr4 implementations.diff --git a/doc/html/man/curs_addch.3x.html b/doc/html/man/curs_addch.3x.html index b423745e..94cd7e71 100644 --- a/doc/html/man/curs_addch.3x.html +++ b/doc/html/man/curs_addch.3x.html @@ -2,7 +2,7 @@ @@ -175,27 +175,32 @@ dard, Issue 4. The defaults specified for forms-drawing characters apply in the POSIX locale. - Some ACS symbols (ACS_S3, ACS_S7, ACS_LEQUAL, ACS_GEQUAL, - ACS_PI, ACS_NEQUAL, ACS_STERLING) were not documented in - any publicly released System V. However, many publicly - available terminfos include acsc strings in which their - key characters (pryz{|}) are embedded, and a second-hand - list of their character descriptions has come to light. - The ACS-prefixed names for them were invented for + X/Open Curses states that the ACS_ definitions are char + constants. For the wide-character implementation (see + curs_add_wch), there are analogous WACS_ definitions which + are cchar_t constants. + + Some ACS symbols (ACS_S3, ACS_S7, ACS_LEQUAL, ACS_GEQUAL, + ACS_PI, ACS_NEQUAL, ACS_STERLING) were not documented in + any publicly released System V. However, many publicly + available terminfos include acsc strings in which their + key characters (pryz{|}) are embedded, and a second-hand + list of their character descriptions has come to light. + The ACS-prefixed names for them were invented for ncurses(3x). - The TABSIZE variable is implemented in some versions of + The TABSIZE variable is implemented in some versions of curses, but is not part of X/Open curses. - If ch is a carriage return, the cursor is moved to the - beginning of the current row of the window. This is true + If ch is a carriage return, the cursor is moved to the + beginning of the current row of the window. This is true of other implementations, but is not documented.
- curses(3x), curs_attr(3x), curs_clear(3x), curs_inch(3x), - curs_outopts(3x), curs_refresh(3x), curs_variables(3x), + curses(3x), curs_attr(3x), curs_clear(3x), curs_inch(3x), + curs_outopts(3x), curs_refresh(3x), curs_variables(3x), putc(3). Comparable functions in the wide-character (ncursesw) diff --git a/doc/html/man/curs_border_set.3x.html b/doc/html/man/curs_border_set.3x.html index a3f637c0..c64a816c 100644 --- a/doc/html/man/curs_border_set.3x.html +++ b/doc/html/man/curs_border_set.3x.html @@ -1,7 +1,7 @@ @@ -168,7 +168,8 @@
- ncurses(3x), curs_border(3x), curs_outopts(3x) + ncurses(3x), curs_add_wch(3x), curs_border(3x), curs_out- + opts(3x) diff --git a/doc/html/man/curs_getch.3x.html b/doc/html/man/curs_getch.3x.html index 18eb8618..ae404d0c 100644 --- a/doc/html/man/curs_getch.3x.html +++ b/doc/html/man/curs_getch.3x.html @@ -2,7 +2,7 @@ @@ -268,6 +268,22 @@ says that KEY_ENTER is control/M, getch will return KEY_ENTER when you press control/M. + Generally, KEY_ENTER denotes the character(s) sent by the + Enter key on the numeric keypad: + + o the terminal description lists the most useful keys, + + o the Enter key on the regular keyboard is already han- + dled by the standard ASCII characters for carriage-re- + turn and line-feed, + + o depending on whether nl or nonl was called, pressing + "Enter" on the regular keyboard may return either a + carriage-return or line-feed, and finally + + o "Enter or send" is the standard description for this + key. + When using getch, wgetch, mvgetch, or mvwgetch, nocbreak mode (nocbreak) and echo mode (echo) should not be used at the same time. Depending on the state of the tty driver @@ -321,10 +337,11 @@
- curses(3x), curs_inopts(3x), curs_mouse(3x), - curs_move(3x), curs_refresh(3x), resizeterm(3x). + curses(3x), curs_inopts(3x), curs_outopts(3x), + curs_mouse(3x), curs_move(3x), curs_refresh(3x), re- + sizeterm(3x). - Comparable functions in the wide-character (ncursesw) li- + Comparable functions in the wide-character (ncursesw) li- brary are described in curs_get_wch(3x). diff --git a/doc/html/man/form.3x.html b/doc/html/man/form.3x.html index 15a681ea..c42bf838 100644 --- a/doc/html/man/form.3x.html +++ b/doc/html/man/form.3x.html @@ -243,7 +243,7 @@
- This describes ncurses version 5.7 (patch 20110108). + This describes ncurses version 5.7 (patch 20110122). diff --git a/doc/html/man/infocmp.1m.html b/doc/html/man/infocmp.1m.html index 79293231..420d097a 100644 --- a/doc/html/man/infocmp.1m.html +++ b/doc/html/man/infocmp.1m.html @@ -423,7 +423,7 @@ captoinfo(1m), infotocap(1m), tic(1m), toe(1m), curses(3x), terminfo(5). - This describes ncurses version 5.7 (patch 20110108). + This describes ncurses version 5.7 (patch 20110122).diff --git a/doc/html/man/infotocap.1m.html b/doc/html/man/infotocap.1m.html index 58d31e18..1d6babca 100644 --- a/doc/html/man/infotocap.1m.html +++ b/doc/html/man/infotocap.1m.html @@ -94,7 +94,7 @@
curses(3x), tic(1m), infocmp(1m), terminfo(5) - This describes ncurses version 5.7 (patch 20110108). + This describes ncurses version 5.7 (patch 20110122).diff --git a/doc/html/man/menu.3x.html b/doc/html/man/menu.3x.html index 2951fa29..5643aa37 100644 --- a/doc/html/man/menu.3x.html +++ b/doc/html/man/menu.3x.html @@ -226,7 +226,7 @@
- This describes ncurses version 5.7 (patch 20110108). + This describes ncurses version 5.7 (patch 20110122). diff --git a/doc/html/man/ncurses.3x.html b/doc/html/man/ncurses.3x.html index 7b6029f9..46e6c0ce 100644 --- a/doc/html/man/ncurses.3x.html +++ b/doc/html/man/ncurses.3x.html @@ -63,7 +63,7 @@ sonable optimization. This implementation is ``new curses'' (ncurses) and is the approved replacement for 4.4BSD classic curses, which has been discontinued. This - describes ncurses version 5.7 (patch 20110108). + describes ncurses version 5.7 (patch 20110122). The ncurses library emulates the curses library of System V Release 4 UNIX, and XPG4 (X/Open Portability Guide) diff --git a/doc/html/man/ncurses5-config.1.html b/doc/html/man/ncurses5-config.1.html deleted file mode 100644 index 9f5f5b47..00000000 --- a/doc/html/man/ncurses5-config.1.html +++ /dev/null @@ -1,133 +0,0 @@ - - - - -ncurses5-config 1 - - - - -ncurses5-config 1
-
-- -ncurses5-config(1) ncurses5-config(1) - - - - --NAME
- ncurses5-config - helper script for ncurses libraries - - --SYNOPSIS
- ncurses5-config [options] - - --DESCRIPTION
- This is a shell script which simplifies configuring appli- - cations against a particular set of ncurses libraries. - - --OPTIONS
- --prefix - echos the package-prefix of ncurses - - --exec-prefix - echos the executable-prefix of ncurses - - --cflags - echos the C compiler flags needed to compile with - ncurses - - --libs echos the libraries needed to link with ncurses - - --version - echos the release+patchdate version of ncurses - - --abi-version - echos the ABI version of ncurses - - --mouse-version - echos the mouse-interface version of ncurses - - --bindir - echos the directory containing ncurses programs - - --datadir - echos the directory containing ncurses data - - --includedir - echos the directory containing ncurses header files - - --libdir - echos the directory containing ncurses libraries - - --mandir - echos the directory containing ncurses manpages - - --terminfo - echos the $TERMINFO terminfo database path, e.g., - /usr/share/terminfo - - --terminfo-dirs - echos the $TERMINFO_DIRS directory list, e.g., - /usr/local/ncurses/lib/terminfo:/usr/share/terminfo - - --termpath - echos the $TERMPATH termcap list, if support for - termcap is configured. - - --help prints this message - - --SEE ALSO
- curses(3x) - - This describes ncurses version 5.7 (patch 20110108). - - - - ncurses5-config(1) --
- -Man(1) output converted with -man2html - - - diff --git a/doc/html/man/panel.3x.html b/doc/html/man/panel.3x.html index 27cb9448..ae39a4aa 100644 --- a/doc/html/man/panel.3x.html +++ b/doc/html/man/panel.3x.html @@ -218,7 +218,7 @@SEE ALSO
curses(3x), curs_variables(3x), - This describes ncurses version 5.7 (patch 20110108). + This describes ncurses version 5.7 (patch 20110122).diff --git a/doc/html/man/tabs.1.html b/doc/html/man/tabs.1.html index a9036107..c23cd6ff 100644 --- a/doc/html/man/tabs.1.html +++ b/doc/html/man/tabs.1.html @@ -156,7 +156,7 @@SEE ALSO
tset(1), infocmp(1m), curses(3x), terminfo(5). - This describes ncurses version 5.7 (patch 20110108). + This describes ncurses version 5.7 (patch 20110122). diff --git a/doc/html/man/terminfo.5.html b/doc/html/man/terminfo.5.html index de057be2..33d86e2b 100644 --- a/doc/html/man/terminfo.5.html +++ b/doc/html/man/terminfo.5.html @@ -78,7 +78,7 @@ nals by giving a set of capabilities which they have, by specifying how to perform screen operations, and by speci- fying padding requirements and initialization sequences. - This describes ncurses version 5.7 (patch 20110108). + This describes ncurses version 5.7 (patch 20110122). Entries in terminfo consist of a sequence of `,' separated fields (embedded commas may be escaped with a backslash or diff --git a/doc/html/man/tic.1m.html b/doc/html/man/tic.1m.html index 366a3b47..8349d1b3 100644 --- a/doc/html/man/tic.1m.html +++ b/doc/html/man/tic.1m.html @@ -309,7 +309,7 @@ infocmp(1m), captoinfo(1m), infotocap(1m), toe(1m), curses(3x), terminfo(5). - This describes ncurses version 5.7 (patch 20110108). + This describes ncurses version 5.7 (patch 20110122).diff --git a/doc/html/man/toe.1m.html b/doc/html/man/toe.1m.html index b3b5b683..2b0583ea 100644 --- a/doc/html/man/toe.1m.html +++ b/doc/html/man/toe.1m.html @@ -111,7 +111,7 @@ tic(1m), infocmp(1m), captoinfo(1m), infotocap(1m), curses(3x), terminfo(5). - This describes ncurses version 5.7 (patch 20110108). + This describes ncurses version 5.7 (patch 20110122). diff --git a/doc/html/man/tput.1.html b/doc/html/man/tput.1.html index 33b921c8..ac234064 100644 --- a/doc/html/man/tput.1.html +++ b/doc/html/man/tput.1.html @@ -327,7 +327,7 @@SEE ALSO
clear(1), stty(1), tabs(1), terminfo(5). - This describes ncurses version 5.7 (patch 20110108). + This describes ncurses version 5.7 (patch 20110122). diff --git a/doc/html/man/tset.1.html b/doc/html/man/tset.1.html index c92f9ad2..c8fb6515 100644 --- a/doc/html/man/tset.1.html +++ b/doc/html/man/tset.1.html @@ -319,7 +319,7 @@ csh(1), sh(1), stty(1), curs_terminfo(3x), tty(4), ter- minfo(5), ttys(5), environ(7) - This describes ncurses version 5.7 (patch 20110108). + This describes ncurses version 5.7 (patch 20110122). diff --git a/include/curses.h.in b/include/curses.h.in index e140d10b..5774154e 100644 --- a/include/curses.h.in +++ b/include/curses.h.in @@ -1,5 +1,5 @@ /**************************************************************************** - * Copyright (c) 1998-2009,2010 Free Software Foundation, Inc. * + * Copyright (c) 1998-2010,2011 Free Software Foundation, Inc. * * * * Permission is hereby granted, free of charge, to any person obtaining a * * copy of this software and associated documentation files (the * @@ -32,7 +32,7 @@ * and: Thomas E. Dickey 1996-on * ****************************************************************************/ -/* $Id: curses.h.in,v 1.219 2011/01/01 21:52:45 tom Exp $ */ +/* $Id: curses.h.in,v 1.220 2011/01/22 19:47:20 tom Exp $ */ #ifndef __NCURSES_H #define __NCURSES_H diff --git a/man/curs_getch.3x b/man/curs_getch.3x index 8f29f75f..2d5d6fda 100644 --- a/man/curs_getch.3x +++ b/man/curs_getch.3x @@ -1,6 +1,6 @@ '\" t .\"*************************************************************************** -.\" Copyright (c) 1998-2006,2010 Free Software Foundation, Inc. * +.\" Copyright (c) 1998-2010,2011 Free Software Foundation, Inc. * .\" * .\" Permission is hereby granted, free of charge, to any person obtaining a * .\" copy of this software and associated documentation files (the * @@ -27,10 +27,13 @@ .\" authorization. * .\"*************************************************************************** .\" -.\" $Id: curs_getch.3x,v 1.33 2010/12/04 18:36:44 tom Exp $ +.\" $Id: curs_getch.3x,v 1.36 2011/01/22 19:38:51 tom Exp $ .TH curs_getch 3X "" .na .hy 0 +.de bP +.IP \(bu 4 +.. .SH NAME \fBgetch\fR, \fBwgetch\fR, @@ -264,6 +267,20 @@ If it says that \fBKEY_ENTER\fP is control/M, \fBgetch\fR will return \fBKEY_ENTER\fP when you press control/M. .PP +Generally, \fBKEY_ENTER\fP denotes the character(s) sent by the \fIEnter\fP +key on the numeric keypad: +.bP +the terminal description lists the most useful keys, +.bP +the \fIEnter\fP key on the regular keyboard is already handled by +the standard ASCII characters for carriage-return and line-feed, +.bP +depending on whether \fBnl\fP or \fBnonl\fP was called, +pressing "Enter" on the regular keyboard may return either a carriage-return +or line-feed, and finally +.bP +"Enter or send" is the standard description for this key. +.PP When using \fBgetch\fR, \fBwgetch\fR, \fBmvgetch\fR, or \fBmvwgetch\fR, nocbreak mode (\fBnocbreak\fR) and echo mode (\fBecho\fR) should not be used at the same time. @@ -316,6 +333,7 @@ any code using it be conditionalized on the \fBNCURSES_VERSION\fR feature macro. .SH SEE ALSO \fBcurses\fR(3X), \fBcurs_inopts\fR(3X), +\fBcurs_outopts\fR(3X), \fBcurs_mouse\fR(3X), \fBcurs_move\fR(3X), \fBcurs_refresh\fR(3X), diff --git a/ncurses/base/MKlib_gen.sh b/ncurses/base/MKlib_gen.sh index c4319bf0..66ae295c 100755 --- a/ncurses/base/MKlib_gen.sh +++ b/ncurses/base/MKlib_gen.sh @@ -2,10 +2,10 @@ # # MKlib_gen.sh -- generate sources from curses.h macro definitions # -# ($Id: MKlib_gen.sh,v 1.42 2011/01/01 22:06:52 tom Exp $) +# ($Id: MKlib_gen.sh,v 1.43 2011/01/22 19:47:29 tom Exp $) # ############################################################################## -# Copyright (c) 1998-2009,2010 Free Software Foundation, Inc. # +# Copyright (c) 1998-2010,2011 Free Software Foundation, Inc. # # # # Permission is hereby granted, free of charge, to any person obtaining a # # copy of this software and associated documentation files (the "Software"), # diff --git a/ncurses/base/lib_bkgd.c b/ncurses/base/lib_bkgd.c index d07d8111..0396ba8f 100644 --- a/ncurses/base/lib_bkgd.c +++ b/ncurses/base/lib_bkgd.c @@ -1,5 +1,5 @@ /**************************************************************************** - * Copyright (c) 1998-2009,2010 Free Software Foundation, Inc. * + * Copyright (c) 1998-2010,2011 Free Software Foundation, Inc. * * * * Permission is hereby granted, free of charge, to any person obtaining a * * copy of this software and associated documentation files (the * @@ -36,7 +36,7 @@ #include-MODULE_ID("$Id: lib_bkgd.c,v 1.42 2011/01/01 17:18:52 tom Exp $") +MODULE_ID("$Id: lib_bkgd.c,v 1.43 2011/01/22 19:47:37 tom Exp $") /* * Set the window's background information. diff --git a/ncurses/base/lib_mouse.c b/ncurses/base/lib_mouse.c index 621f8f70..dac03955 100644 --- a/ncurses/base/lib_mouse.c +++ b/ncurses/base/lib_mouse.c @@ -1,5 +1,5 @@ /**************************************************************************** - * Copyright (c) 1998-2009,2010 Free Software Foundation, Inc. * + * Copyright (c) 1998-2010,2011 Free Software Foundation, Inc. * * * * Permission is hereby granted, free of charge, to any person obtaining a * * copy of this software and associated documentation files (the * @@ -84,7 +84,7 @@ #define CUR SP_TERMTYPE #endif -MODULE_ID("$Id: lib_mouse.c,v 1.120 2011/01/01 22:25:49 tom Exp $") +MODULE_ID("$Id: lib_mouse.c,v 1.121 2011/01/22 19:47:47 tom Exp $") #include diff --git a/ncurses/base/lib_newwin.c b/ncurses/base/lib_newwin.c index 791d8082..2b120eac 100644 --- a/ncurses/base/lib_newwin.c +++ b/ncurses/base/lib_newwin.c @@ -1,5 +1,5 @@ /**************************************************************************** - * Copyright (c) 1998-2009,2010 Free Software Foundation, Inc. * + * Copyright (c) 1998-2010,2011 Free Software Foundation, Inc. * * * * Permission is hereby granted, free of charge, to any person obtaining a * * copy of this software and associated documentation files (the * @@ -43,7 +43,7 @@ #include #include -MODULE_ID("$Id: lib_newwin.c,v 1.66 2010/04/24 23:31:18 tom Exp $") +MODULE_ID("$Id: lib_newwin.c,v 1.68 2011/01/22 20:34:15 tom Exp $") #define window_is(name) ((sp)->_##name == win) @@ -141,7 +141,7 @@ NCURSES_SP_NAME(newwin) (NCURSES_SP_DCLx T((T_CALLED("newwin(%p, %d,%d,%d,%d)"), (void *) SP_PARM, num_lines, num_columns, begy, begx)); - if (begy < 0 || begx < 0 || num_lines < 0 || num_columns < 0) + if (begy < 0 || begx < 0 || num_lines <= 0 || num_columns <= 0) returnWin(0); if (num_lines == 0) @@ -198,7 +198,7 @@ derwin(WINDOW *orig, int num_lines, int num_columns, int begy, int begx) /* * make sure window fits inside the original one */ - if (begy < 0 || begx < 0 || orig == 0 || num_lines < 0 || num_columns < 0) + if (begy < 0 || begx < 0 || orig == 0 || num_lines <= 0 || num_columns <= 0) returnWin(0); if (begy + num_lines > orig->_maxy + 1 || begx + num_columns > orig->_maxx + 1) diff --git a/ncurses/curses.priv.h b/ncurses/curses.priv.h index 0db05ddf..49346c12 100644 --- a/ncurses/curses.priv.h +++ b/ncurses/curses.priv.h @@ -1,5 +1,5 @@ /**************************************************************************** - * Copyright (c) 1998-2009,2010 Free Software Foundation, Inc. * + * Copyright (c) 1998-2010,2011 Free Software Foundation, Inc. * * * * Permission is hereby granted, free of charge, to any person obtaining a * * copy of this software and associated documentation files (the * @@ -34,7 +34,7 @@ ****************************************************************************/ /* - * $Id: curses.priv.h,v 1.472 2011/01/01 23:01:40 tom Exp $ + * $Id: curses.priv.h,v 1.475 2011/01/22 21:10:19 tom Exp $ * * curses.priv.h * @@ -490,6 +490,7 @@ extern NCURSES_EXPORT(int) _nc_mutex_unlock(pthread_mutex_t *); #ifdef USE_PTHREADS # if USE_WEAK_SYMBOLS weak_symbol(pthread_sigmask); +weak_symbol(pthread_kill); weak_symbol(pthread_self); weak_symbol(pthread_equal); weak_symbol(pthread_mutex_init); @@ -1710,7 +1711,7 @@ extern NCURSES_EXPORT(int) NCURSES_SP_NAME(_nc_InsCharCost) (NCURSES_SP_DCLx int #undef UpdateAttrs #define UpdateAttrs(sp,c) NCURSES_SP_NAME(_nc_UpdateAttrs)(NCURSES_SP_ARGx CHREF(c)) -#if defined(NEED_NCURSES_CH_T) +#if USE_WIDEC_SUPPORT || defined(NEED_NCURSES_CH_T) extern NCURSES_EXPORT(void) NCURSES_SP_NAME(_nc_UpdateAttrs) (NCURSES_SP_DCLx CARG_CH_T _c); #else extern NCURSES_EXPORT(void) NCURSES_SP_NAME(_nc_UpdateAttrs) (NCURSES_SP_DCLx chtype c); diff --git a/ncurses/trace/lib_traceatr.c b/ncurses/trace/lib_traceatr.c index 86147c1d..35ba0d3e 100644 --- a/ncurses/trace/lib_traceatr.c +++ b/ncurses/trace/lib_traceatr.c @@ -1,5 +1,5 @@ /**************************************************************************** - * Copyright (c) 1998-2009,2010 Free Software Foundation, Inc. * + * Copyright (c) 1998-2010,2011 Free Software Foundation, Inc. * * * * Permission is hereby granted, free of charge, to any person obtaining a * * copy of this software and associated documentation files (the * @@ -43,7 +43,7 @@ #define CUR SP_TERMTYPE #endif -MODULE_ID("$Id: lib_traceatr.c,v 1.73 2011/01/01 22:01:11 tom Exp $") +MODULE_ID("$Id: lib_traceatr.c,v 1.74 2011/01/22 19:48:01 tom Exp $") #define COLOR_OF(c) ((c < 0) ? "default" : (c > 7 ? color_of(c) : colors[c].name)) diff --git a/ncurses/trace/lib_tracemse.c b/ncurses/trace/lib_tracemse.c index aa74fb1f..1afd15d2 100644 --- a/ncurses/trace/lib_tracemse.c +++ b/ncurses/trace/lib_tracemse.c @@ -1,5 +1,5 @@ /**************************************************************************** - * Copyright (c) 1998-2008,2010 Free Software Foundation, Inc. * + * Copyright (c) 1998-2010,2011 Free Software Foundation, Inc. * * * * Permission is hereby granted, free of charge, to any person obtaining a * * copy of this software and associated documentation files (the * @@ -38,7 +38,7 @@ #include -MODULE_ID("$Id: lib_tracemse.c,v 1.17 2011/01/01 22:31:53 tom Exp $") +MODULE_ID("$Id: lib_tracemse.c,v 1.18 2011/01/22 19:48:08 tom Exp $") #ifdef TRACE diff --git a/ncurses/trace/trace_buf.c b/ncurses/trace/trace_buf.c index e09d3290..46baba47 100644 --- a/ncurses/trace/trace_buf.c +++ b/ncurses/trace/trace_buf.c @@ -1,5 +1,5 @@ /**************************************************************************** - * Copyright (c) 1998-2008,2010 Free Software Foundation, Inc. * + * Copyright (c) 1998-2010,2011 Free Software Foundation, Inc. * * * * Permission is hereby granted, free of charge, to any person obtaining a * * copy of this software and associated documentation files (the * @@ -35,7 +35,7 @@ #include -MODULE_ID("$Id: trace_buf.c,v 1.16 2011/01/09 00:08:31 tom Exp $") +MODULE_ID("$Id: trace_buf.c,v 1.17 2011/01/22 19:48:16 tom Exp $") #ifdef TRACE diff --git a/ncurses/tty/lib_mvcur.c b/ncurses/tty/lib_mvcur.c index 8e1b90bd..ad41f8dd 100644 --- a/ncurses/tty/lib_mvcur.c +++ b/ncurses/tty/lib_mvcur.c @@ -1,5 +1,5 @@ /**************************************************************************** - * Copyright (c) 1998-2009,2010 Free Software Foundation, Inc. * + * Copyright (c) 1998-2010,2011 Free Software Foundation, Inc. * * * * Permission is hereby granted, free of charge, to any person obtaining a * * copy of this software and associated documentation files (the * @@ -159,7 +159,7 @@ #define CUR SP_TERMTYPE #endif -MODULE_ID("$Id: lib_mvcur.c,v 1.125 2011/01/09 21:06:08 tom Exp $") +MODULE_ID("$Id: lib_mvcur.c,v 1.126 2011/01/22 19:48:21 tom Exp $") #define WANT_CHAR(sp, y, x) NewScreen(sp)->_line[y].text[x] /* desired state */ diff --git a/test/ncurses.c b/test/ncurses.c index 83586166..5a422cf1 100644 --- a/test/ncurses.c +++ b/test/ncurses.c @@ -1,5 +1,5 @@ /**************************************************************************** - * Copyright (c) 1998-2009,2010 Free Software Foundation, Inc. * + * Copyright (c) 1998-2010,2011 Free Software Foundation, Inc. * * * * Permission is hereby granted, free of charge, to any person obtaining a * * copy of this software and associated documentation files (the * @@ -40,7 +40,7 @@ AUTHOR Author: Eric S. Raymond 1993 Thomas E. Dickey (beginning revision 1.27 in 1996). -$Id: ncurses.c,v 1.364 2011/01/15 23:45:49 tom Exp $ +$Id: ncurses.c,v 1.365 2011/01/22 19:48:33 tom Exp $ ***************************************************************************/