Commit Graph

89 Commits

Author SHA1 Message Date
Thomas E. Dickey
950eed9ace ncurses 5.9 - patch 20110423
+ add check in test/configure for use_window, use_screen.
+ add configure-checks for getopt's variables, which may be declared
  as different types on some Unix systems.
+ add check in test/configure for some legacy curses types of the
  function pointer passed to tputs().
+ modify init_pair() to accept -1's for color value after
  assume_default_colors() has been called (Debian #337905).
+ modify test/background.c, adding commmand-line options to demonstrate
  assume_default_colors() and use_default_colors().
2011-04-24 00:53:45 +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
b87ec59eb4 ncurses 5.7 - patch 20110101
+ fix remaining strict compiler warnings in ncurses library ABI=5,
  except those dealing with function pointers, etc.
2011-01-02 01:08:28 +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
d4ff840fdd ncurses 5.7 - patch 20100828
+ modify nsterm, xnuppc and tek4115 to make sgr/sgr0 consistent -TD
+ add check in terminfo source-reader to provide more informative
  message when someone attempts to run tic on a compiled terminal
  description (prompted by Debian #593920).
+ note in infotocap and captoinfo manpages that they read terminal
  descriptions from text-files (Debian #593920).
+ improve acsc string for vt52, show arrow keys (patch by Benjamin
  Sittler).
2010-08-29 00:20:14 +00:00
Thomas E. Dickey
71c0306f08 ncurses 5.7 - patch 20100731
+ modify initialization check for win32con driver to eliminate need for
  special case for TERM "unknown", using terminal database if available
  (prompted by discussion with Roumen Petrov).
+ for MinGW port, ensure that terminal driver is setup if tgetent()
  is called (patch by Roumen Petrov).
+ document tabs "-0" and "-8" options in manpage.
+ fix Debian "lintian" issues with manpages reported in
  http://lintian.debian.org/full/csmall@debian.org.html#ncurses
2010-08-01 00:45:28 +00:00
Thomas E. Dickey
a2ea66477b ncurses 5.7 - patch 20100522
+ correct cross-compiling configure check for CF_MKSTEMP macro, by
  adding a check cache variable set by AC_CHECK_FUNC (report by
  Pierre Labastie).
+ simplify include-dependencies of make_hash and make_keys, to reduce
  the need for setting BUILD_CPPFLAGS in cross-compiling when the
  build- and target-machines differ.
+ repair broken-linker configuration by restoring a definition of SP
  variable to curses.priv.h, and adjusting for cases where sp-funcs
  are used.
+ improve configure macro CF_AR_FLAGS, allowing ARFLAGS environment
  variable to override (prompted by report by Pablo Cazallas).
2010-05-23 00:52:44 +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
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
10539f5afe ncurses 5.7 - patch 20100410
+ improve win_driver.c handling of mouse:
  + discard motion events
  + avoid calling _nc_timed_wait when there is a mouse event
  + handle 4th and "rightmost" buttons.
+ quote substitutions in CF_RPATH_HACK_2 configure macro, needed for
  cases where there are embedded blanks in the rpath option.
2010-04-10 23:46:02 +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
8c0ecb76c7 ncurses 5.7 - patch 20100313
+ modify install-rule for manpages so that *-config manpages will
  install when building with --srcdir (report by Sven Joachim).
+ modify CF_DISABLE_LEAKS configure macro so that the --enable-leaks
  option is not the same as --disable-leaks (GenToo #305889).
+ modify #define's for build-compiler to suppress cchar_t symbol from
  compile of make_hash and make_keys, improving cross-compilation of
  ncursesw (report by Bernhard Rosenkraenzer).
+ modify CF_MAN_PAGES configure macro to replace all occurrences of
  TPUT in tput.1's manpage (Debian #573597, report/analysis by Anders
  Kaseorg).
2010-03-13 21:18:05 +00:00
Thomas E. Dickey
d49a800c7f ncurses 5.7 - patch 20100306
+ generate manpages for the *-config scripts, adapted from help2man
  (suggested by Sven Joachim).
+ use va_copy() in _nc_printf_string() to avoid conflicting use of
  va_list value in _nc_printf_length() (report by Wim Lewis).
2010-03-07 00:37:08 +00:00
Thomas E. Dickey
626c294438 ncurses 5.7 - patch 20100206
+ update mrxvt terminfo entry -TD
+ modify win_driver.c to support mouse single-clicks.
+ correct name for termlib in ncurses*-config, e.g., if it is renamed
  to provide a single file for ncurses/ncursesw libraries (patch by
  Miroslav Lichvar).
2010-02-07 01:40:29 +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
c04d54322f ncurses 5.7 - patch 20100116
+ modify win_driver.c to initialize acs_map for win32 console, so
  that line-drawing works.
+ modify win_driver.c to initialize TERMINAL struct so that programs
  such as test/lrtest.c and test/ncurses.c which test string
  capabilities can run.
+ modify term-driver modules to eliminate forward-reference
  declarations.
2010-01-17 01:52:00 +00:00
Thomas E. Dickey
cb9a015f66 ncurses 5.7 - patch 20091205
+ correct layout of working window used to extract data in
  wide-character configured by set_field_buffer (patch by Rafael
  Garrido Fernandez)
+ improve some limit-checks related to filename length in reading and
  writing terminfo entries.
+ ensure that filename is always filled in when attempting to read
  a terminfo entry, so that infocmp can report the filename (patch
  by Nicholas Marriott).
2009-12-06 01:32:45 +00:00
Thomas E. Dickey
49e6baa949 ncurses 5.7 - patch 20091128
+ modify mk-1st.awk to allow tinfo library to be built when term-driver
  is enabled.
+ add error-check to configure script to ensure that sp-funcs is
  enabled if term-driver is, since some internal interfaces rely upon
  this.
2009-11-29 02:00:36 +00:00
Thomas E. Dickey
582d14ba03 ncurses 5.7 - patch 20091121
+ fix case where progs/tput is used while sp-funcs is configure; this
  requires save/restore of out-character function from _nc_prescreen
  rather than the SCREEN structure (report by Charles Wilson).
+ fix typo in man/curs_trace.3x which caused incorrect symbolic links
+ improved configure macros CF_GCC_ATTRIBUTES, CF_PROG_LINT.
2009-11-22 01:54:35 +00:00
Thomas E. Dickey
fb24ca09ea ncurses 5.7 - patch 20091031
+ modify use of $CC environment variable which is defined by X/Open
  as a curses feature, to ignore it if it is not a single character
  (prompted by discussion with Benjamin C W Sittler).
+ add START_TRACE in slk_init
+ fix a regression in _nc_ripoffline which made test/ncurses.c not show
  soft-keys, broken in 20090927 merging.
+ change initialization of "hidden" flag for soft-keys from true to
  false, broken in 20090704 merging (Ubuntu #464274).
+ update nsterm entries (patch by Benjamin C W Sittler, prompted by
  discussion with Fabian Groffen in GenToo #206201).
+ add test/xterm-256color.dat
2009-11-01 01:07:09 +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
3511767aa7 ncurses 5.7 - patch 20090912
+ add some test programs (and make these use the same special keys
  by sharing linedata.h functions):
  test/test_addstr.c
  test/test_addwstr.c
  test/test_addchstr.c
  test/test_add_wchstr.c
+ correct internal _nc_insert_ch() to use _nc_insert_wch() when
  inserting wide characters, since the wins_wch() function that it used
  did not update the cursor position (report by Ciprian Craciun).
2009-09-13 01:17:05 +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
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
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
26522e4669 ncurses 5.7 - patch 20090530
+ fix an infinite recursion when adding a legacy-coding 8-bit value
  using insch() (report by Clemens Ladisch).
+ free home-terminfo string in del_curterm() (patch by Dan Weber).
+ continue integrating "sp-funcs" by Juergen Pfeifer (incomplete).
2009-05-30 23:24:28 +00:00
Thomas E. Dickey
1886515007 ncurses 5.7 - patch 20090523
+ continue integrating "sp-funcs" by Juergen Pfeifer (incomplete).
2009-05-24 01:18:15 +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
37babca07f ncurses 5.7 - patch 20090419
+ build fix for _nc_free_and_exit() change in 20090418 (report by
  Christian Ebert).
2009-04-19 15:09:33 +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
b94faec6aa ncurses 5.7 - patch 20090228
+ continue integrating "sp-funcs" by Juergen Pfeifer (incomplete).
+ modify declaration of cur_term when broken-linker is used, but
  enable-reentrant is not, to match pre-5.7 (report by Charles Wilson).
2009-02-28 23:06:36 +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
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
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
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
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
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
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