Commit Graph

174 Commits

Author SHA1 Message Date
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
Thomas E. Dickey
8144a95f57 ncurses 5.6 - patch 20080105
+ several improvements to terminfo entries based on xterm #230 -TD
+ modify MKlib_gen.sh to handle keyname/key_name prototypes, so the
  "link_test" builds properly.
+ fix for toe command-line options -u/-U to ensure filename is given.
+ fix allocation-size for command-line parsing in infocmp from 20070728
  (report by Miroslav Lichvar)
+ improve resizeterm() by moving ripped-off lines, and repainting the
  soft-keys (report by Katarina Machalkova)
+ add clarification in wclear's manpage noting that the screen will be
  cleared even if a subwindow is cleared (prompted by Christer Enfors
  question).
+ change test/ncurses.c soft-key tests to work with KEY_RESIZE.
2008-01-06 02:04:59 +00:00
Thomas E. Dickey
e0371a7943 ncurses 5.6 - patch 20071222
+ continue implementing support for threading demo by adding mutex
  for delwin().
2007-12-23 01:43:39 +00:00
Thomas E. Dickey
f0af2558d3 ncurses 5.6 - patch 20071217 2007-12-16 00:40:08 +00:00
Thomas E. Dickey
9378ce0407 ncurses 5.6 - patch 20071201
+ add note about configure options needed for Berkeley database to the
  INSTALL file.
+ improve checks for version of Berkeley database libraries.
+ amend fix for rpath to not modify LDFLAGS if the platform has no
  applicable transformation (report by Christian Ebert, cf: 20071124).
2007-12-02 01:15:08 +00:00
Thomas E. Dickey
c7bc3019ea ncurses 5.6 - patch 20071124
+ modify configure option --with-hashed-db to accept a parameter which
  is the install-prefix of a given Berkeley Database (prompted by
  pierre4d2 comments).
+ rewrite wrapper for wcrtomb(), making it work on Solaris.  This is
  used in the form library to determine the length of the buffer needed
  by field_buffer (report by Alfred Fung).
+ remove unneeded window-parameter from C++ binding for wresize (report
  by Chris Lee).
2007-11-25 02:05:21 +00:00
Thomas E. Dickey
40df80d8d3 ncurses 5.6 - patch 20071117
+ modify the support for filesystems which do not support mixed-case to
  generate 2-character (hexadecimal) codes for the lower-level of the
  filesystem terminfo database (request by Michail Vidiassov).
+ add configure option --enable-mixed-case, to allow overriding the
  configure script's check if the filesystem supports mixed-case
  filenames.
+ add wresize() to C++ binding (request by Chris Lee).
+ define NCURSES_EXT_FUNCS and NCURSES_EXT_COLORS in curses.h to make
  it simpler to tell if the extended functions and/or colors are
  declared.
2007-11-18 02:09:05 +00:00
Thomas E. Dickey
b17ff3673e ncurses 5.6 - patch 20071103
+ update memory-leak checks for changes to names.c and codes.c
+ correct acsc strings in h19, z100 (patch by Benjamin C W Sittler).
2007-11-04 00:06:31 +00:00
Thomas E. Dickey
cc79c103a0 ncurses 5.6 - patch 20071020
+ continue implementing support for threading demo by adding mutex
  for use_window().
+ add mrxvt terminfo entry, add/fix xterm building blocks for modified
  cursor keys -TD
+ compile with FreeBSD "contemporary" TTY interface (patch by
  Rong-En Fan).
2007-10-20 23:21:19 +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
28e9f9700c ncurses 5.6 - patch 20071006
+ add code to curses.priv.h ifdef'd with NCURSES_CHAR_EQ, which
  changes the CharEq() macro to an inline function to allow comparing
  cchar_t struct's without comparing gaps in a possibly unpacked
  memory layout (report by Miroslav Lichvar).
2007-10-06 23:01:06 +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
e79c0691e5 ncurses 5.6 - patch 20070915
+ modify Ada95/gen/Makefile to use shlib script, to simplify building
  shared-library configuration on platforms lacking rpath support.
+ build-fix for Ada95/src/Makefile to reflect changed dependency for
  the terminal-interface-curses-aux.adb file which is now generated.
+ restructuring test/worm.c, for use_window() example.
2007-09-15 22:30:31 +00:00
Thomas E. Dickey
aabbbcb789 ncurses 5.6 - patch 20070908
+ add use_window() and use_screen() functions, to develop into support
  for threaded library (incomplete).
+ fix typos in man/curs_opaque.3x which kept the install script from
  creating symbolic links to two aliases created in 20070818 (report by
  Rong-En Fan).
2007-09-08 22:25:05 +00:00
Thomas E. Dickey
f7b8e526e0 ncurses 5.6 - patch 20070901
+ remove a spurious newline from output of html.m4, which caused links
  for Ada95 html to be incorrect for the files generated using m4.
+ start investigating mutex's for SCREEN manipulation (incomplete).
+ minor cleanup of codes.c/names.c for --enable-const
+ expand/revise "Routine and Argument Names" section of ncurses manpage
  to address report by David Givens in newsgroup discussion.
+ fix interaction between --without-progs/--with-termcap configure
  options (report by Michail Vidiassov).
+ fix typo in "--disable-relink" option (report by Michail Vidiassov).
2007-09-02 00:20:31 +00:00
Thomas E. Dickey
9c9ca6d67e ncurses 5.6 - patch 20070825
+ fix a sign-extension bug in infocmp's repair_acsc() function
  (cf: 971004).
+ fix old configure script bug which prevented "--disable-warnings"
  option from working (patch by Mike Frysinger).
2007-08-25 20:38:10 +00:00
Thomas E. Dickey
17e1f876e3 ncurses 5.6 - patch 20070818
+ add 9term terminal description (request by Juhapekka Tolvanen) -TD
+ modify comp_hash.c's string output to avoid misinterpreting a null
  "\0" followed by a digit.
+ modify MKnames.awk and MKcodes.awk to support big-strings.
  This only applies to the cases (broken linker, reentrant) where
  the corresponding arrays are accessed via wrapper functions.
+ split MKnames.awk into two scripts, eliminating the shell redirection
  which complicated the make process and also the bogus timestamp file
  which was introduced to fix "make -j".
+ add test/test_opaque.c, test/test_arrays.c
+ add wgetscrreg() and wgetparent() for applications that may need it
  when NCURSES_OPAQUE is defined (prompted by Bryan Christ).
2007-08-19 00:27:58 +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
03a795bde5 ncurses 5.6 - patch 20070728
+ make _nc_capalias_table and _nc_infoalias_table private, accessed via
  _nc_get_alias_table() since they are used only by parse_entry.c
+ make _nc_key_names private since it is used only by lib_keyname.c
+ add --disable-big-strings configure option to control whether
  unctrl.c is generated using the big-string optimization - which may
  use strings longer than supported by a given compiler.
+ reduce relocation tables for tic, infocmp by changing type of
  internal hash tables to short, and make those private symbols.
+ eliminate large fixed arrays from progs/infocmp.c
2007-07-29 00:27:12 +00:00
Thomas E. Dickey
772f879d17 ncurses 5.6 - patch 20070721
+ change winnstr() to stop at the end of the line (cf: 970315).
+ add test/test_get_wstr.c
+ add test/test_getstr.c
+ add test/test_inwstr.c
+ add test/test_instr.c
2007-07-21 23:58:49 +00:00
Thomas E. Dickey
6bbba9cd97 ncurses 5.6 - patch 20070716
+ restore a call to obtain screen-size in _nc_setupterm(), which
  is used in tput and other non-screen applications via setupterm()
  (Debian #433357, reported by Florent Bayle, Christian Ohm,
  cf: 20070310).
2007-07-16 22:24:03 +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
a6e4fdd3cd ncurses 5.6 - patch 20070707
+ add continuous-move "M" to demo_panels to help test refresh changes.
+ improve fix for refresh of window on top of multi-column characters,
  taking into account some split characters on left/right window
  boundaries.
2007-07-07 23:55:05 +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
574a94bc3d ncurses 5.6 - patch 20070623
+ add test/demo_panels.c
+ implement opaque version of setsyx() and getsyx().
2007-06-23 23:14:41 +00:00
Thomas E. Dickey
7b2974498f ncurses 5.6 - patch 20070612
+ corrected xterm+pcf2 terminfo modifiers for F1-F4, to match xterm
  #226 -TD
+ split-out key_name() from MKkeyname.awk since it now depends upon
  wunctrl() which is not in libtinfo (report by Rong-En Fan).
2007-06-12 23:12:17 +00:00
Thomas E. Dickey
a1aff38c94 ncurses 5.6 - patch 20070609
+ add test/key_name.c
+ add stdscr cases to test/inchs.c and test_inch_wide.c
+ update test/configure
+ correct formatting of DEL (0x7f) in _nc_vischar().
+ null-terminate result of wunctrl().
+ add null-pointer check in key_name() (report by Andreas Krennmair,
  cf: 20020901).
2007-06-10 00:41:32 +00:00
Thomas E. Dickey
3853a8e97d ncurses 5.6 - patch 20070602
+ adapt mouse-handling code from menu library in form-library
  (discussion with Clive Nicolson).
+ add a modification of test/dots.c, i.e., test/dots_mvcur.c to
  illustrate how to use mvcur().
+ modify wide-character flavor of SetAttr() to preserve the
  WidecExt() value stored in the .attr field, e.g., in case it
  is overwritten by chgat (report by Aleksi Torhamo).
+ correct buffer-size for _nc_viswbuf2n() (report by Aleksi Torhamo).
+ build-fixes for Solaris 2.6 and 2.7 (patch by Peter O'Gorman).
2007-06-03 00:04:38 +00:00
Thomas E. Dickey
2c829dd4fa ncurses 5.6 - patch 20070526
+ modify keyname() to use "^X" form only if meta() has been called, or
  if keyname() is called without initializing curses, e.g., via
  initscr() or newterm() (prompted by LinuxBase #1604).
+ document some portability issues in man/curs_util.3x
+ add a shadow copy of TTY buffer to _nc_prescreen to fix applications
  broken by moving that data into SCREEN (cf: 20061230).
2007-05-26 23:44: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
efd59f16f3 ncurses 5.6 - patch 20070414 2007-04-14 23:23:43 +00:00
Thomas E. Dickey
2639531af0 ncurses 5.6 - patch 20070407 2007-04-08 01:10:28 +00:00
Thomas E. Dickey
5a9c046f10 ncurses 5.6 - patch 20070331
+ modify Ada95 binding to build with --enable-reentrant by wrapping
  global variables (bug: acs_map does not yet work).
+ modify Ada95 binding to use the new access-functions, allowing it
  to build/run when NCURSES_OPAQUE is set.
+ add access-functions and macros to return properties of the WINDOW
  structure, e.g., when NCURSES_OPAQUE is set.
+ improved install-sh's quoting.
+ use mkdirs.sh rather than mkinstalldirs, e.g., to use fixes from
  other programs.
  NCURSES_OPAQUE set, since we cannot pass a reference to
2007-04-01 00:48:02 +00:00
Thomas E. Dickey
33b3156f43 ncurses 5.6 - patch 20070324
+ eliminate part of the direct use of WINDOW data from Ada95 interface.
+ fix substitutions for termlib filename to make configure option
  --enable-reentrant work with --with-termlib.
+ change a constructor for NCursesWindow to allow compiling with
  NCURSES_OPAQUE defined, since we cannot pass a reference to
  an opaque pointer.
2007-03-25 00:28:09 +00:00