Commit Graph

510 Commits

Author SHA1 Message Date
Thomas E. Dickey
c37d51504d ncurses 5.7 - patch 20090105
+ remove undeveloped feature in ncurses-config.in for setting
  prefix variable.
+ recent change to ncurses-config.in did not take into account the
  --disable-overwrite option, which sets $includedir to the
  subdirectory and using just that for a -I option does not work - fix
  (report by Frederic L W Meunier).
2009-01-06 01:45:02 +00:00
Thomas E. Dickey
f9e12ea019 ncurses 5.7 - patch 20090104
+ modify gen-pkgconfig.in to eliminate a dependency on rpath when
  deciding whether to add $LIBS to --libs output; that should be shown
  for the ncurses and tinfo libraries without taking rpath into
  account.
+ fix an overlooked change from $AR_OPTS to $ARFLAGS in mk-1st.awk,
  used in static libraries (report by Marty Jack).
2009-01-04 22:54:42 +00:00
Thomas E. Dickey
96097feb6c ncurses 5.7 - patch 20090103
+ add a configure-time check to pick a suitable value for
  CC_SHARED_OPTS for Solaris (report by Dagobert Michelsen).
+ add configure --with-pkg-config and --enable-pc-files options, along
  with misc/gen-pkgconfig.in which can be used to generate ".pc" files
  for pkg-config (request by Jan Engelhardt).
+ use $includedir symbol in misc/ncurses-config.in, add --includedir
  option.
+ change makefiles to use $ARFLAGS rather than $AR_OPTS, provide a
  configure check to detect whether a "-" is needed before "ar"
  options.
+ update config.guess, config.sub from
	http://savannah.gnu.org/projects/config
2009-01-04 02:08:30 +00:00
Thomas E. Dickey
8c7df70e2d ncurses 5.7 - patch 20081227
+ modify mk-1st.awk to work with extra categories for tinfo library.
+ modify configure script to allow building shared libraries with gcc
  on AIX 5 or 6 (adapted from patch by Lital Natan).
2008-12-28 01:49:09 +00:00
Thomas E. Dickey
06ae48ca77 ncurses 5.7 - patch 20081220
+ modify to omit the opaque-functions from lib_gen.o when
  --disable-ext-funcs is used.
+ add test/clip_printw.c to illustrate how to use printw without
  wrapping.
+ modify ncurses 'F' test to demo wborder_set() with colored lines.
+ modify ncurses 'f' test to demo wborder() with colored lines.
2008-12-21 01:18:36 +00:00
Thomas E. Dickey
e9d205b516 ncurses 5.7 - patch 20081213
+ add check for failure to open hashed-database needed for db4.6
  (GenToo #245370).
+ corrected --without-manpages option; previous change only suppressed
  the auxiliary rules install.man and uninstall.man
+ add case for FreeMINT to configure macro CF_XOPEN_SOURCE (patch from
  GenToo #250454).
+ fixes from NetBSD port at
  http://cvsweb.netbsd.org/bsdweb.cgi/pkgsrc/devel/ncurses/patches
  patch-ac (build-fix for DragonFly)
  patch-ae (use INSTALL_SCRIPT for installing misc/ncurses*-config).
+ improve configure script macros CF_HEADER_PATH and CF_LIBRARY_PATH
  by adding CFLAGS, CPPFLAGS and LDFLAGS, LIBS values to the
  search-lists.
+ correct title string for keybound manpage (patch by Frederic Culot,
  OpenBSD documentation/6019),
2008-12-13 23:26:23 +00:00
Thomas E. Dickey
879fd5bd9d ncurses 5.7 - patch 20081206
+ move del_curterm() call from _nc_freeall() to _nc_leaks_tinfo() to
  work for progs/clear, progs/tabs, etc.
+ correct buffer-size after internal resizing of wide-character
  set_field_buffer(), broken in 20081018 changes (report by Mike Gran).
+ add "-i" option to test/filter.c to tell it to use initscr() rather
  than newterm(), to investigate report on comp.unix.programmer that
  ncurses would clear the screen in that case (it does not - the issue
  was xterm's alternate screen feature).
+ add check in mouse-driver to disable connection if GPM returns a
  zero, indicating that the connection is closed (Debian #506717,
  adapted from patch by Samuel Thibault).
2008-12-07 01:42:58 +00:00
Thomas E. Dickey
86b23c4fe3 ncurses 5.7 - patch 20081129
+ improve a workaround in adding wide-characters, when a control
  character is found.  The library (cf: 20040207) uses unctrl() to
  obtain a printable version of the control character, but was not
  passing color or video attributes.
+ improve test/ncurses.c 'a' test, using unctrl() more consistently to
  display meta-characters.
+ turn on _XOPEN_CURSES definition in curses.h
+ add eterm-color entry (report by Vincent Lefevre) -TD
+ correct use of key_name() in test/ncurses.c 'A' test, which only
  displays wide-characters, not key-codes since 20070612 (report by
  Ricardo Cantu).
2008-11-30 00:38:32 +00:00
Thomas E. Dickey
65ee0f2ca5 ncurses 5.7 - patch 20081122
+ change _nc_has_mouse() to has_mouse(), reflect its use in C++ and
  Ada95 (patch by Juergen Pfeifer).
+ document in TO-DO an issue with Cygwin's package for GNAT (report
  by Mike Dennison).
+ improve error-checking of command-line options in "tabs" program.
2008-11-23 01:33:11 +00:00
Thomas E. Dickey
412da50547 ncurses 5.7 - patch 20081115
+ change several terminfo entries to make consistent use of ANSI
  clear-all-tabs -TD
+ add "tabs" program (prompted by Debian #502260).
+ add configure --without-manpages option (request by Mike Frysinger).
2008-11-16 02:16:59 +00:00
Thomas E. Dickey
e70a86c3d4 ncurses 5.7 2008-11-02 21:13:51 -05:00
Thomas E. Dickey
e116460ef1 ncurses 5.6 - patch 20081025
+ add a manpage to discuss memory leaks.
+ add support for shared libraries for QNX (other than libtool, which
  does not work well on that platform).
+ build-fix for QNX C++ binding.
2008-10-26 01:07:21 +00:00
Thomas E. Dickey
b5df67bc68 ncurses 5.6 - patch 20081018
+ build-fixes for OS/2 EMX.
+ modify form library to accept control characters such as newline
  in set_field_buffer(), which is compatible with Solaris (report by
  Nit Khair).
+ modify configure script to assume --without-hashed-db when
  --disable-database is used.
+ add "-e" option in ncurses/Makefile.in when generating source-files
  to force earlier exit if the build environment fails unexpectedly
  (prompted by patch by Adrian Bunk).
+ change configure script to use CF_UTF8_LIB, improved variant of
  CF_LIBUTF8.
2008-10-19 00:58:44 +00:00
Thomas E. Dickey
b6bff46512 ncurses 5.6 - patch 20081012
+ add teraterm4.59 terminfo entry, use that as primary teraterm entry, rename
  original to teraterm2.3 -TD
+ update "gnome" terminfo to 2.22.3 -TD
+ update "konsole" terminfo to 1.6.6, needs today's fix for tic -TD
+ add "aterm" terminfo -TD
+ add "linux2.6.26" terminfo -TD
+ add logic to tic for cancelling strings in user-defined capabilities,
  overlooked til now.
2008-10-13 00:34:11 +00:00
Thomas E. Dickey
f6718d80c9 ncurses 5.6 - patch 20081011
+ update html documentation.
+ add -m and -s options to test/keynames.c and test/key_names.c to test
  the meta() function with keyname() or key_name(), respectively.
+ correct return value of key_name() on error; it is null.
+ document some unresolved issues for rpath and pthreads in TO-DO.
+ fix a missing prototype for ioctl() on OpenBSD in tset.c
+ add configure option --disable-tic-depends to make explicit whether
  tic library depends on ncurses/ncursesw library, amends change from
  20080823 (prompted by Debian #501421).
2008-10-11 23:44:29 +00:00
Thomas E. Dickey
205f120bce ncurses 5.6 - patch 20081004
+ some build-fixes for configure --disable-ext-funcs (incomplete, but
  works for C/C++ parts).
+ improve configure-check for awks unable to handle large strings, e.g.
  AIX 5.1 whose awk silently gives up on large printf's.
2008-10-05 00:17:19 +00:00
Thomas E. Dickey
76af49c338 ncurses 5.6 - patch 20080927
+ fix build for --with-dmalloc by workaround for redefinition of
  strndup between string.h and dmalloc.h
+ fix build for --disable-sigwinch
+ add environment variable NCURSES_GPM_TERMS to allow override to use
  GPM on terminals other than "linux", etc.
+ disable GPM mouse support when $TERM does not happen to contain
  "linux", since Gpm_Open() no longer limits its assertion to terminals
  that it might handle, e.g., within "screen" in xterm.
+ reset mouse file-descriptor when unloading GPM library (report by
  Miroslav Lichvar).
+ fix build for --disable-leaks --enable-widec --with-termlib
> patch by Juergen Pfeifer:
+ use improved initialization for soft-label keys in Ada95 sample code.
+ discard internal symbol _nc_slk_format (unused since 20080112).
+ move call of slk_paint_info() from _nc_slk_initialize() to
  slk_intern_refresh(), improving initialization.
2008-09-28 01:08:36 +00:00
Thomas E. Dickey
feb958a7e8 ncurses 5.6 - patch 20080925
+ fix bug in mouse code for GPM from 20080920 changes (reported in
  Debian #500103, also Miroslav Lichvar).
2008-09-25 23:54:34 +00:00
Thomas E. Dickey
1c2ec25b81 ncurses 5.6 - patch 20080920
+ fix shared-library rules for cygwin with tic- and tinfo-libraries.
+ fix a memory leak when failure to connect to GPM.
+ correct check for notimeout() in wgetch() (report on linux.redhat
  newsgroup by FurtiveBertie).
+ add an example warning-suppression file for valgrind,
  misc/ncurses.supp (based on example from Reuben Thomas)
2008-09-21 01:01:25 +00:00
Thomas E. Dickey
d736364fc0 ncurses 5.6 - patch 20080913
+ change shared-library configuration for OpenBSD, make rpath work.
+ build-fixes for using libutf8, e.g., on OpenBSD 3.7
2008-09-14 01:09:37 +00:00
Thomas E. Dickey
057900a2db ncurses 5.6 - patch 20080907
+ corrected fix for --enable-weak-symbols (report by Frederic L W
  Meunier).
2008-09-07 17:49:37 +00:00
Thomas E. Dickey
a7d99bb6b2 ncurses 5.6 - patch 20080906
+ corrected gcc options for building shared libraries on IRIX64.
+ add configure check for awk programs unable to handle big-strings,
  use that to improve the default for --enable-big-strings option.
+ makefile-fixes for --enable-weak-symbols (report by Frederic L W
  Meunier).
+ update test/configure script.
+ adapt ifdef's from library to make test/view.c build when mbrtowc()
  is unavailable, e.g., with HPUX 10.20.
+ add configure check for wcsrtombs, mbsrtowcs, which are used in
  test/ncurses.c, and use wcstombs, mbstowcs instead if available,
  fixing build of ncursew for HPUX 11.00
2008-09-07 01:02:23 +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
48310f11b2 ncurses 5.6 - patch 20080823
+ modify configure check for pthread library to work with OSF/1 5.1,
  which uses #define's to associate its header and library.
+ use pthread_mutexattr_init() for initializing pthread_mutexattr_t,
  makes threaded code work on HPUX 11.23
+ fix a bug in demo_menus in freeing menus (cf: 20080804).
+ modify configure script for the case where tic library is used (and
  possibly renamed) to remove its dependency upon ncurses/ncursew
  library (patch by Dr Werner Fink).
+ correct manpage for menu_fore() which gave wrong default for
  the attribute used to display a selected entry (report by Mike Gran).
+ add Eterm-256color, Eterm-88color and rxvt-88color (prompted by
  Debian #495815) -TD
2008-08-24 00:26:02 +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
4c309ad3b1 ncurses 5.6 - patch 20080726
+ build-fixes for gcc 4.3.1 (changes to gnat "warnings", and C inlining
  thresholds).
2008-07-26 22:24:31 +00:00
Thomas E. Dickey
2983c16f31 ncurses 5.6 - patch 20080713
+ build-fix (reports by Christian Ebert, Funda Wang).
2008-07-13 11:09:41 +00:00
Thomas E. Dickey
01cec7497c ncurses 5.6 - patch 20080712
+ compiler-warning fixes for Solaris.
2008-07-13 00:35:08 +00:00
Thomas E. Dickey
7c4bc0fa99 ncurses 5.6 - patch 20080705
+ use NCURSES_MOUSE_MASK() in definition of BUTTON_RELEASE(), etc., to
  make those work properly with the "--enable-ext-mouse" configuration
  (cf: 20050205).
+ improve documentation of build-cc options in INSTALL.
+ work-around a bug in gcc 4.2.4 on AIX, which does not pass the
  -static/-dynamic flags properly to linker, causing test/bs to
  not link.
2008-07-06 00:36:01 +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
ca276baf72 ncurses 5.6 - patch 20080621
+ regenerated html documentation.
+ expand manpage description of parameters for form_driver() and
  menu_driver() (prompted by discussion with Adam Spragg).
+ add null-pointer checks for cur_term in baudrate() and
  def_shell_mode(), def_prog_mode()
+ fix some memory leaks in delscreen() and wide acs.
2008-06-22 00:16:39 +00:00
Thomas E. Dickey
4e6cadb948 ncurses 5.6 - patch 20080614
+ modify test/ditto.c to illustrate multi-threaded use_screen().
+ change CC_SHARED_OPTS from -KPIC to -xcode=pic32 for Solaris.
+ add "-shared" option to MK_SHARED_LIB for gcc on Solaris (report
  by Poor Yorick).
2008-06-15 00:30:11 +00:00
Thomas E. Dickey
1078c0231b ncurses 5.6 - patch 20080607
+ finish changes to wgetch(), making it switch as needed to the
  window's actual screen when calling wrefresh() and wgetnstr().  That
  allows wgetch() to get used concurrently in different threads with
  some minor restrictions, e.g., the application should not delete a
  window which is being used in a wgetch().
+ simplify mutex's, combining the window- and screen-mutex's.
2008-06-08 00:40:16 +00:00
Thomas E. Dickey
bd7ef7c230 ncurses 5.6 - patch 20080531
+ modify wgetch() to use the screen which corresponds to its window
  parameter rather than relying on SP; some dependent functions still
  use SP internally.
+ factor out most use of SP in lib_mouse.c, using parameter.
+ add internal _nc_keyname(), replacing keyname() to associate with a
  particular SCREEN rather than the global SP.
+ add internal _nc_unctrl(), replacing unctrl() to associate with a
  particular SCREEN rather than the global SP.
+ add internal _nc_tracemouse(), replacing _tracemouse() to eliminate
  its associated global buffer _nc_globals.tracemse_buf now in SCREEN.
+ add internal _nc_tracechar(), replacing _tracechar() to use SCREEN in
  preference to the global _nc_globals.tracechr_buf buffer.
2008-05-31 23:49:39 +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
a21e1b511e ncurses 5.6 - patch 20080517
+ modify configure script to note that --enable-ext-colors and
  --enable-ext-mouse are not experimental, but extensions from
  the ncurses ABI 5.
+ corrected manpage description of setcchar() (discussion with
  Emanuele Giaquinta).
+ fix for adding a non-spacing character at the beginning of a line
  (report/patch by Miroslav Lichvar).
2008-05-18 00:27:17 +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
6209b84e2f ncurses 5.6 - patch 20080419
+ add screen.rxvt terminfo entry -TD
+ modify tic -f option to format spaces as \s to prevent them from
  being lost when that is read back in unformatted strings.
+ improve test/ditto.c, using a "talk"-style layout.
2008-04-19 23:51:44 +00:00
Thomas E. Dickey
396a05943b ncurses 5.6 - patch 20080412
+ change test/ditto.c to use openpty() and xterm.
+ add locks for copywin(), dupwin(), overlap(), overlay() on their
  window parameters.
+ add locks for initscr() and newterm() on updates to the SCREEN
  pointer.
+ finish table in curs_thread.3x manpage.
2008-04-13 01:03:15 +00:00
Thomas E. Dickey
6a5e1ae301 ncurses 5.6 - patch 20080405
+ begin table in curs_thread.3x manpage describing the scope of data
  used by each function (or symbol) for threading analysis.
+ add null-pointer checks to setsyx() and getsyx() (prompted by
  discussion by Martin v. Lowis and Jeroen Ruigrok van der Werven on
  python-dev2 mailing list).
2008-04-06 00:59:00 +00:00
Thomas E. Dickey
60014650d5 ncurses 5.6 - patch 20080329
+ add null-pointer checks in set_term() and delscreen().
+ move _nc_windows into _nc_globals, since windows can be pads, which
  are not associated with a particular screen.
+ change use_screen() to pass the SCREEN* parameter rather than
  stdscr to the callback function.
+ force libtool to use tag for 'CC' in case it does not detect this,
  e.g., on aix when using CC=powerpc-ibm-aix5.3.0.0-gcc
  (report/patch by Michael Haubenwallner).
+ override OBJEXT to "lo" when building with libtool, to work on
  platforms such as AIX where libtool supports only static libraries
  (report/patch by Michael Haubenwallner).
+ add configure --with-pthread option, for building with the POSIX
  thread library.
2008-03-29 23:48:44 +00:00
Thomas E. Dickey
920d493ac0 ncurses 5.6 - patch 20080322
+ fill in extended-color pair two more places in wbkgrndset() and
  waddch_nosync() (prompted by Sedeno's patch).
+ fill in extended-color pair in _nc_build_wch() to make colors work
  for wide-characters using extended-colors (patch by Alejandro R
  Sedeno).
+ add x/X toggles to ncurses.c C color test to test/demo
  wide-characters with extended-colors.
+ add a/A toggles to ncurses.c c/C color tests.
+ modify test/ditto.c to use use_screen().
+ finish modifying test/rain.c to demonstrate threads.
2008-03-23 01:02:37 +00:00
Thomas E. Dickey
88d50b5d70 ncurses 5.6 - patch 20080308
+ start modifying test/rain.c for threading demo.
+ modify test/ncurses.c to make 'f' test accept the f/F/b/F/</> toggles
  that the 'F' accepts.
+ modify test/worm.c to show trail in reverse-video when other threads
  are working concurrently.
+ fix a deadlock from improper nesting of mutexes for windowlist and
  window.
2008-03-09 00:57:07 +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
d44d7f381b ncurses 5.6 - patch 20080223
+ fix a size-difference in _nc_globals which caused hanging of mutex
  lock/unlock when termlib was built separately.
+ avoid using nanosleep() in threaded configuration since that often
  is implemented to suspend the entire process.
2008-02-24 01:25:21 +00:00
Thomas E. Dickey
4ae6d1c18d ncurses 5.6 - patch 20080209
+ update test programs to build/work with various UNIX curses for
  comparisons.  This was to reinvestigate statement in X/Open curses
  that insnstr and winsnstr perform wrapping.  None of the Unix-branded
  implementations do this, as noted in manpage (cf: 20040228).
2008-02-10 00:41:46 +00:00
Thomas E. Dickey
b779f5fb45 ncurses 5.6 - patch 20080203
+ modify _nc_setupscreen() to set the legacy-coding value the same
  for both narrow/wide models.  It had been set only for wide model,
  but is needed to make unctrl() work with locale in the narrow model.
+ improve waddch() and winsch() handling of EILSEQ from mbrtowc() by
  using unctrl() to display illegal bytes rather than trying to append
  further bytes to make up a valid sequence (reported by Andrey A
  Chernov).
+ modify unctrl() to check codes in 128-255 range versus isprint().
  If they are not printable, and locale was set, use a "M-" or "~"
  sequence.
+ improve threading in test/worm.c (wrap refresh calls, and KEY_RESIZE
  handling).  Now it hangs in napms(), no matter whether nanosleep()
  or poll() or select() are used on Linux.
2008-02-03 20:52:12 +00:00
Thomas E. Dickey
25358bc041 ncurses 5.6 - patch 20080119
+ fixes to build with --disable-ext-funcs
+ add manpage for use_window and use_screen.
+ add set_tabsize() and set_escdelay() functions.
2008-01-20 00:51:10 +00:00
Thomas E. Dickey
c4d90db4f4 ncurses 5.6 - patch 20080112
+ remove recursive-mutex definitions, finish threading demo for worm.c
+ remove a redundant adjustment of lines in resizeterm.c's
  adjust_window() which caused occasional misadjustment of stdscr when
  softkeys were used.
2008-01-13 02:05:47 +00:00