Commit Graph

55 Commits

Author SHA1 Message Date
Thomas E. Dickey
03f728e5bb ncurses 5.9 - patch 20111022
+ correct logic for discarding mouse events, retaining the partial
  events used to build up click, double-click, etc, until needed
  (cf: 20110917).
+ fix configure script to avoid creating unused Ada95 makefile when
  gnat does not work.
+ cleanup width-related gcc 3.4.3 warnings for 64-bit platform, for the
  internal functions of libncurses.  The external interface of courses
  uses bool, which still produces these warnings.
2011-10-23 01:04:18 +00:00
Thomas E. Dickey
bd75bb126b ncurses 5.9 - patch 20110625
+ improve cleanup() function in lib_tstp.c, using _exit() rather than
  exit() and checking for SIGTERM rather than SIGQUIT (prompted by
  comments forwarded by Nicholas Marriott).
+ reduce name pollution from term.h, moving fallback #define's for
  tcgetattr(), etc., to new private header nc_termios.h (report by
  Sergio NNX).
+ two minor fixes for tracing (patch by Vassili Courzakis).
+ improve trace initialization by starting it in use_env() and
  ripoffline().
+ review old email, add details for some changelog entries.
2011-06-26 00:21:18 +00:00
Thomas E. Dickey
d1a026123a ncurses 5.9 - patch 20110528
+ add case to CF_SHARED_OPTS for Interix (patch by Markus Duft).
+ used ncurses/link_test to check for behavior when the terminal has
  not been initialized and when an application passes null pointers
  to the library.  Added checks to cover this (prompted by Redhat
  #707344).
+ modify MKlib_gen.sh to make its main() function call each function
  with zero parameters, to help find inconsistent checking for null
  pointers, etc.
2011-05-29 00:20:42 +00:00
Thomas E. Dickey
48c8a4fe45 ncurses 5.9 - patch 20110416
+ modify configure script/source-code to only define _POSIX_SOURCE if
  the checks for sigaction and/or termios fail, and if _POSIX_C_SOURCE
  and _XOPEN_SOURCE are undefined (report by Valentin Ochs).
+ update config.guess, config.sub
2011-04-16 19:26:53 +00:00
Thomas E. Dickey
70322aa06a ncurses 5.7 - patch 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).
2011-01-23 01:23:10 +00:00
Thomas E. Dickey
b040313679 ncurses 5.7 - patch 20110115
+ modify Ada95/configure script to make the --with-curses-dir option
  work without requiring the --with-ncurses option.
+ modify test programs to allow them to be built with NetBSD curses.
+ document thick- and double-line symbols in curs_add_wch.3x manpage.
+ document WACS_xxx constants in curs_add_wch.3x manpage.
+ fix some warnings for clang 2.6 "--analyze"
+ modify Ada95 makefiles to make html-documentation with the project
  file configuration if that is used.
+ update config.guess, config.sub
2011-01-16 01:24:20 +00:00
Thomas E. Dickey
f79b52fddd ncurses 5.7 - patch 20101225
+ modify nc_tparm.h, adding guards against repeated inclusion, and
  allowing TPARM_ARG to be overridden.
+ fix some strict compiler warnings in ncurses library.
2010-12-26 01:22:11 +00:00
Thomas E. Dickey
6b43eaddcd ncurses 5.7 - patch 20100605
+ change search order of options for Solaris in CF_SHARED_OPTS, to
  work with 64-bit compiles.
+ correct quoting of assignment in CF_SHARED_OPTS case for aix
  (cf: 20081227)
2010-06-06 00:57:09 +00:00
Thomas E. Dickey
41677b308e ncurses 5.7 - patch 20100515
+ add configure option --enable-pthreads-eintr to control whether the
  new EINTR feature is enabled.
+ modify logic in pthread configuration to allow EINTR to interrupt
  a read operation in wgetch() (Novell #540571, patch by Werner Fink).
+ drop mkdirs.sh, use "mkdir -p".
+ add configure option --disable-libtool-version, to use the
  "-version-number" feature which was added in libtool 1.5 (report by
  Peter Haering).  The default value for the option uses the newer
  feature, which makes libraries generated using libtool compatible
  with the standard builds of ncurses.
+ updated test/configure to match configure script macros.
+ fixes for configure script from lynx changes:
  + improve CF_FIND_LINKAGE logic for the case where a function is
    found in predefined libraries.
  + revert part of change to CF_HEADER (cf: 20100424)
2010-05-16 00:56:17 +00:00
Thomas E. Dickey
92e187a345 ncurses 5.7 - patch 20100501
+ correct limit-check in wredrawln, accounting for begy/begx values
  (patch by David Benjamin).
+ fix most compiler warnings from clang.
+ amend build-fix for OpenSolaris, to ensure that a system header is
  included in curses.h before testing feature symbols, since they
  may be defined by that route.
2010-05-02 00:59:02 +00:00
Thomas E. Dickey
11dead3981 ncurses 5.7 - patch 20100424
+ fix some strict compiler warnings in ncurses library.
+ modify configure macro CF_HEADER_PATH to not look for variations in
  the predefined include directories.
+ improve configure macros CF_GCC_VERSION and CF_GCC_WARNINGS to work
  with gcc 4.x's c89 alias, which gives warning messages for cases
  where older versions would produce an error.
2010-04-25 01:40:39 +00:00
Thomas E. Dickey
cf94c7485f ncurses 5.7 - patch 20100403
+ add configure check for exctags vs ctags, to work around pkgsrc.
+ simplify logic in _nc_get_screensize() to make it easier to see how
  environment variables may override system- and terminfo-values
  (prompted by discussion with Igor Bujna).
+ make debug-traces for COLOR_PAIR and PAIR_NUMBER less verbose.
+ improve handling of color-pairs embedded in attributes for the
  extended-colors configuration.
+ modify MKlib_gen.sh to build link_test with sp-funcs.
+ build-fixes for OpenSolaris aka Solaris 11, for wide-character
  configuration as well as for rpath feature in *-config scripts.
2010-04-04 01:26:17 +00:00
Thomas E. Dickey
c6540b9c89 ncurses 5.7 - patch 20100123
+ for term-driver configuration, ensure that the driver pointer is
  initialized in setupterm so that terminfo/termcap programs work.
+ amend fix for Debian #542031 to ensure that wattrset() returns only
  OK or ERR, rather than the attribute value (report by Miroslav
  Lichvar).
+ reorder WINDOWLIST to put WINDOW data after SCREEN pointer, making
  _nc_screen_of() compatible between normal/wide libraries again (patch
  by Miroslav Lichvar)
+ review/fix include-dependencies in modules files (report by Miroslav
  Lichvar).
2010-01-24 01:42:57 +00:00
Thomas E. Dickey
f5da57ad7e ncurses 5.7 - patch 20091107
+ improve test/ncurses.c color-cycling test by reusing attribute-
  and color-cycling logic from the video-attributes screen.
+ add ifdef'd with NCURSES_INTEROP_FUNCS experimental bindings in form
  library which help make it compatible with interop applications
  (patch by Juergen Pfeifer).
+ add configure option --enable-interop, for integrating changes
  for generic/interop support to form-library by Juergen Pfeifer
2009-11-08 00:45:43 +00:00
Thomas E. Dickey
3a0d9d27e0 ncurses 5.7 - patch 20091024
+ quiet some pedantic gcc warnings.
+ modify _nc_wgetch() to check for a -1 in the fifo, e.g., after a
  SIGWINCH, and discard that value, to avoid confusing application
  (patch by Eygene Ryabinkin, FreeBSD bin/136223).
2009-10-25 01:06:00 +00:00
Thomas E. Dickey
322d0bb554 ncurses 5.7 - patch 20090927
+ move leak-checking for comp_captab.c into _nc_leaks_tinfo() since
  that module since 20090711 is in libtinfo.
+ add configure option --enable-term-driver, to allow compiling with
  terminal-driver.  That is used in mingw port, and (being somewhat
  more complicated) is an experimental alternative to the conventional
  termlib internals.  Currently, it requires the sp-funcs feature to
  be enabled.
+ completed integrating "sp-funcs" by Juergen Pfeifer in ncurses
  library (some work remains for forms library).
2009-09-20 00:37:00 +00:00
Thomas E. Dickey
8fc9fa113b ncurses 5.7 - patch 20090905
+ build-fix for building outside source-tree (report by Sven Joachim).
+ fix Debian lintian warning for man/tabs.1 by making section number
  agree with file-suffix (report by Sven Joachim).
+ continue integrating "sp-funcs" by Juergen Pfeifer (incomplete).
2009-09-06 00:18:02 +00:00
Thomas E. Dickey
3f5a74a97c ncurses 5.7 - patch 20090822
+ continue integrating "sp-funcs" by Juergen Pfeifer (incomplete).
2009-08-23 01:14:12 +00:00
Thomas E. Dickey
bbb7fd3729 ncurses 5.7 - patch 20090815
+ correct use of terminfo capabilities for initializing soft-keys,
  broken in 20090509 merging.
+ modify wgetch() to ensure it checks SIGWINCH when it gets an error
  in non-blocking mode (patch by Clemens Ladisch).
+ use PATH_SEPARATOR symbol when substituting into run_tic.sh, to
  help with builds on non-Unix platforms such as OS/2 EMX.
+ modify scripting for misc/run_tic.sh to test configure script's
  $cross_compiling variable directly rather than comparing host/build
  compiler names (prompted by comment in GenToo #249363).
+ fix configure script option --with-database, which was coded as an
  enable-type switch.
+ build-fixes for --srcdir (report by Frederic L W Meunier).
2009-08-16 00:18:43 +00:00
Thomas E. Dickey
5b7f4de105 ncurses 5.7 - patch 20090704
+ remove wide-character checks from unctrl() (patch by Clemens Ladisch).
+ revise wadd_wch() and wecho_wchar() to eliminate dependency on
  unctrl().
+ continue integrating "sp-funcs" by Juergen Pfeifer (incomplete).
2009-07-04 23:55:21 +00:00
Thomas E. Dickey
da1f84b7eb ncurses 5.7 - patch 20090627
+ update llib-lncurses[wt] to use sp-funcs.
+ various code-fixes to build/work with --disable-macros configure
  option.
+ add several new files from Juergen Pfeifer which will be used when
  integration of "sp-funcs" is complete.  This includes a port to
  MinGW.
2009-06-28 01:00:34 +00:00
Thomas E. Dickey
3ce2c58251 ncurses 5.7 - patch 20090613
+ move definition for NCURSES_WRAPPED_VAR back to ncurses_dll.h, to
  make includes of term.h without curses.h work (report by "Nix").
+ continue integrating "sp-funcs" by Juergen Pfeifer (incomplete).
2009-06-14 00:39:29 +00:00
Thomas E. Dickey
d4ede7c5fa ncurses 5.7 - patch 20090606
+ continue integrating "sp-funcs" by Juergen Pfeifer (incomplete).
2009-06-07 00:51:13 +00:00
Thomas E. Dickey
9dda8e1ed1 ncurses 5.7 - patch 20090516
+ work around antique BSD game's manipulation of stdscr, etc., versus
  SCREEN's copy of the pointer (Debian #528411).
+ add a cast to wattrset macro to avoid compiler warning when comparing
  its result against ERR (adapted from patch by Matt Kraii, Debian
  #528374).
2009-05-17 00:47:23 +00:00
Thomas E. Dickey
404cc3f5b0 ncurses 5.7 - patch 20090510
+ continue integrating "sp-funcs" by Juergen Pfeifer (incomplete).
2009-05-10 23:36:12 +00:00
Thomas E. Dickey
d998cb49bf ncurses 5.7 - patch 20090425 2009-05-03 00:59:25 +00:00
Thomas E. Dickey
049beef99e ncurses 5.7 - patch 20090425
+ continue integrating "sp-funcs" by Juergen Pfeifer (incomplete).
2009-04-26 01:00:20 +00:00
Thomas E. Dickey
7a6bbc8cf4 ncurses 5.7 - patch 20090418
+ continue integrating "sp-funcs" by Juergen Pfeifer (incomplete).
2009-04-19 00:38:07 +00:00
Thomas E. Dickey
9fab8ab6b6 ncurses 5.7 - patch 20090221
+ continue integrating "sp-funcs" by Juergen Pfeifer (incomplete).
2009-02-22 02:08:00 +00:00
Thomas E. Dickey
78e49873c6 ncurses 5.7 - patch 20090214
+ add configure script --enable-sp-funcs to enable the new set of
  extended functions.
+ start integrating patches by Juergen Pfeifer:
  + add extended functions which specify the SCREEN pointer for several
    curses functions which use the global SP (these are incomplete;
    some internals work is needed to complete these).
  + add special cases to configure script for MinGW port.
2009-02-15 02:14:18 +00:00
Thomas E. Dickey
95a30fbbfc ncurses 5.7 - patch 20090124
+ modify init_pair() to allow caller to create extra color pairs beyond
  the color_pairs limit, which use default colors (request by Emanuele
  Giaquinta).
+ add misc/terminfo.tmp and misc/*.pc to "sources" rule.
+ fix typo "==" where "=" is needed in ncurses-config.in and
  gen-pkgconfig.in files (Debian #512161).
2009-01-25 02:04:12 +00:00
Thomas E. Dickey
d8b5e3f818 ncurses 5.6 - patch 20080830
+ fixes to make Ada95 demo_panels() example work.
+ modify Ada95 'rain' test program to accept keyboard commands like the
  C-version.
+ modify BeOS-specific ifdef's to build on Haiku (patch by Scott
  Mccreary).
+ add configure-check to see if the std namespace is legal for cerr
  and endl, to fix a build issue with Tru64.
+ consistently use NCURSES_BOOL in lib_gen.c
+ filter #line's from lib_gen.c
+ change delimiter in MKlib_gen.sh from '%' to '@', to avoid
  substitution by IBM xlc to '#' as part of its extensions to digraphs.
+ update config.guess, config.sub from
	http://savannah.gnu.org/projects/config
  (caveat - its maintainer removed support for older Linux systems).
2008-08-31 01:08:33 +00:00
Thomas E. Dickey
11ca5f6299 ncurses 5.6 - patch 20080816
+ add configure option --enable-weak-symbols to turn on new feature.
+ add configure-check for availability of weak symbols.
+ modify linkage with pthread library to use weak symbols so that
  applications not linked to that library will not use the mutexes,
  etc.  This relies on gcc, and may be platform-specific (patch by Dr
  Werner Fink).
+ add note to INSTALL to document limitation of renaming of tic library
  using the --with-ticlib configure option (report by Dr Werner Fink).
+ document (in manpage) why tputs does not detect I/O errors (prompted
  by comments by Samuel Thibault).
+ fix remaining warnings from Klocwork report.
2008-08-17 01:51:55 +00:00
Thomas E. Dickey
8f527f87c0 ncurses 5.6 - patch 20080804
+ modify _nc_panelhook() data to account for a permanent memory leak.
+ fix memory leaks in test/demo_menus
+ fix most warnings from Klocwork tool (report by Larry Zhou).
+ modify configure script CF_XOPEN_SOURCE macro to add case for
  "dragonfly" from xterm #236 changes.
+ modify configure script --with-hashed-db to let $LIBS override the
  search for the db library (prompted by report by Samson Pierre).
2008-08-05 01:06:16 +00:00
Thomas E. Dickey
3ce60e9f58 ncurses 5.6 - patch 20080628
+ correct some ifdef's needed for the broken-linker configuration.
+ make debugging library's $BAUDRATE feature work for termcap
  interface.
+ make $NCURSES_NO_PADDING feature work for termcap interface (prompted
  by comment on FreeBSD mailing list).
+ add screen.mlterm terminfo entry -TD
+ improve mlterm and mlterm+pcfkeys terminfo entries -TD
2008-06-29 00:12:36 +00:00
Thomas E. Dickey
9edffa2f21 ncurses 5.6 - patch 20080524
+ modify _nc_keypad() to make it switch temporarily as needed to the
  screen which must be updated.
+ wrap cur_term variable to help make _nc_keymap() thread-safe, and
  always set the screen's copy of this variable in set_curterm().
+ restore curs_set() state after endwin()/refresh() (report/patch
  Miroslav Lichvar)
2008-05-25 00:49:27 +00:00
Thomas E. Dickey
ed530db2c5 ncurses 5.6 - patch 20080503
+ modify screen.* terminfo entries using new screen+fkeys to fix
  overridden keys in screen.rxvt (Debian #478094) -TD
+ modify internal interfaces to reduce wgetch()'s dependency on the
  global SP.
+ simplify some loops with macros each_screen(), each_window() and
  each_ripoff().
+ continue modifying test/ditto.c toward making it demonstrate
  multithreaded use_screen(), using fifos to pass data between screens.
+ fix typo in form.3x (report by Mike Gran).
2008-05-04 00:48:16 +00:00
Thomas E. Dickey
176aaa579a ncurses 5.6 - patch 20080301
+ fixes from 20080223 resolved issue with mutexes; change to use
  recursive mutexes to fix memory leak in delwin() as called from
  _nc_free_and_exit().
2008-03-02 00:28:54 +00:00
Thomas E. Dickey
491a3f08b7 ncurses 5.6 - patch 20071013
+ modify makefile rules to allow clear, tput and tset to be built
  without libtic.  The other programs (infocmp, tic and toe) rely on
  that library.
+ add/modify null-pointer checks in several functions for SP and/or
  the WINDOW* parameter (report by Thorben Krueger).
+ fixes for field_buffer() in formw library (see Redhat Bugzilla
  #310071, patches by Miroslav Lichvar).
+ improve performance of NCURSES_CHAR_EQ code (patch by Miroslav
  Lichvar).
+ update/improve mlterm and rxvt terminfo entries, e.g., for
  the modified cursor- and keypad-keys -TD
2007-10-14 00:38:28 +00:00
Thomas E. Dickey
e6c7286022 ncurses 5.6 - patch 20070929
+ add new functions to lib_trace.c to setup mutex's for the _tracef()
  calls within the ncurses library.
+ for the reentrant model, move _nc_tputs_trace and _nc_outchars into
  the SCREEN.
+ start modifying test/worm.c to provide threading demo (incomplete).
+ separated ifdef's for some BSD-related symbols in tset.c, to make
  it compile on LynxOS (report by Greg Gemmer).
2007-09-29 23:30:37 +00:00
Thomas E. Dickey
cd858895e9 ncurses 5.6 - patch 20070812
+ amend treatment of infocmp "-r" option to retain the 1023-byte limit
  unless "-T" is given (cf: 981017).
+ modify comp_captab.c generation to use big-strings.
+ make _nc_capalias_table and _nc_infoalias_table private accessed via
  _nc_get_alias_table() since the tables are used only within the tic
  library.
+ modify configure script to skip Intel compiler in CF_C_INLINE.
+ make _nc_info_hash_table and _nc_cap_hash_table private accessed via
  _nc_get_hash_table() since the tables are used only within the tic
  library.
2007-08-12 16:31:21 +00:00
Thomas E. Dickey
c13e57306a ncurses 5.6 - patch 20070714
+ add test/savescreen.c test-program
+ add check to trace-file open, if the given name is a directory, add
  ".log" to the name and try again.
+ add konsole-256color entry -TD
+ add extra gcc warning options from xterm.
+ minor fixes for ncurses/hashmap test-program.
+ modify configure script to quiet c++ build with libtool when the
  --disable-echo option is used.
+ modify configure script to disable ada95 if libtool is selected,
  writing a warning message (addresses FreeBSD ports/114493).
+ update config.guess, config.sub
2007-07-15 00:11:01 +00:00
Thomas E. Dickey
eb312e0bb9 ncurses 5.6 - patch 20070630
+ add "widec" row to _tracedump() output to help diagnose remaining
  problems with multi-column characters.
+ partial fix for refresh of window on top of multi-column characters
  which are partly overwritten (report by Sadrul H Chowdhury).
+ ignore A_CHARTEXT bits in vidattr() and vid_attr(), in case
  multi-column extension bits are passed there.
+ add setlocale() call to demo_panels.c, needed for wide-characters.
+ add some output flags to _nc_trace_ttymode to help diagnose a bug
  report by Larry Virden, i.e., ONLCR, OCRNL, ONOCR and ONLRET,
2007-07-01 00:42:27 +00:00
Thomas E. Dickey
1051e5f924 ncurses 5.6 - patch 20070512
+ add 'O' (wide-character panel test) in ncurses.c to demonstrate a
  problem reported by Sadrul H Chowdhury with repainting parts of
  a fullwidth cell.
+ modify slk_init() so that if there are preceding calls to
  ripoffline(), those affect the available lines for soft-keys (adapted
  from patch by Clive Nicolson).
+ document some portability issues in man/curs_getyx.3x
2007-05-13 00:52:59 +00:00
Thomas E. Dickey
3ec8f79f3c ncurses 5.6 - patch 20070505
+ fix a bug in Ada95/samples/ncurses which caused a variable to
  become uninitialized in the "b" test.
+ fix Ada95/gen/Makefile.in adahtml rule to account for recent
  movement of files, fix a few incorrect manpage references in the
  generated html.
+ add Ada95 binding to _nc_freeall() as Curses_Free_All to help with
  memory-checking.
+ correct some functions in Ada95 binding which were using return value
  from C where none was returned:  idcok(), immedok() and wtimeout().
+ amend recent changes for Ada95 binding to make it build with
  Cygwin's linker, e.g., with configure options
	--enable-broken-linker --with-ticlib
2007-05-06 00:26:41 +00:00
Thomas E. Dickey
3faafb2efc ncurses 5.6 - patch 20070428
+ add a configure check for gcc's options for inlining, use that to
  quiet a warning message where gcc's default behavior changed from
  3.x to 4.x.
+ improve warning message when checking if GPM is linked to curses
  library by not warning if its use of "wgetch" is via a weak symbol.
+ add loader options when building with static libraries to ensure that
  an installed shared library for ncurses does not conflict.  This is
  reported as problem with Tru64, but could affect other platforms
  (report Martin Mokrejs, analysis by Tim Mooney).
+ fix build on cygwin after recent ticlib/termlib changes, i.e.,
  + adjust TINFO_SUFFIX value to work with cygwin's dll naming
  + revert a change from 20070303 which commented out dependency of
    SHLIB_LIST in form/menu/panel/c++ libraries.
+ fix initialization of ripoff stack pointer (cf: 20070421).
2007-04-29 00:13:28 +00:00
Thomas E. Dickey
7a27c7d49c ncurses 5.6 - patch 20070421 2007-04-22 00:57:08 +00:00
Thomas E. Dickey
f70db18a0c ncurses 5.6 - patch 20061230
+ modify configure check for libtool's version to trim blank lines
  (report by sci-fi@hush.ai).
+ modify some modules to allow them to be reentrant if _REENTRANT is
  defined: lib_baudrate.c, resizeterm.c (local data only)
+ eliminate static data from some modules: add_tries.c, hardscroll.c,
  lib_ttyflags.c, lib_twait.c
+ improve manpage install to add aliases for the transformed program
  names, e.g., from --program-prefix.
+ used linklint to verify links in the HTML documentation, made fixes
  to manpages as needed.
+ fix a typo in curs_mouse.3x (report by William McBrine).
+ fix install-rule for ncurses5-config to make the bin-directory.
2006-12-24 02:11:39 +00:00
Thomas E. Dickey
027ae42953 ncurses 5.6 2006-12-17 23:32:42 -05:00
Thomas E. Dickey
55ccd2b959 ncurses 5.5 2005-10-09 14:41:57 -04:00