Commit Graph

85 Commits

Author SHA1 Message Date
Thomas E. Dickey
eee1237c85 ncurses 5.9 - patch 20130202
+ correct initialization in knight.c which let it occasionally make
  an incorrect move (cf: 20001028).
+ improve documentation of the terminfo/termcap search path.
2013-02-03 01:25:51 +00:00
Thomas E. Dickey
2403eaecbe ncurses 5.9 - patch 20130126
+ further fixes to mvcur to pass callback function (cf: 20130112),
  needed to make test/dots_mvcur work.
+ reduce calls to SetConsoleActiveScreenBuffer in win_driver.c, to
  help reduce flicker.
+ modify configure script to omit "+b" from linker options for very
  old HP-UX systems (report by Dennis Grevenstein)
+ add HP-UX workaround for missing EILSEQ on old HP-UX systems (patch
  by Dennis Grevenstein).
+ restore memmove/strdup support for antique systems (request by
  Dennis Grevenstein).
+ change %l behavior in tparm to push the string length onto the stack
  rather than saving the formatted length into the output buffer
  (report by Roy Marples, cf: 980620).
2013-01-27 02:16:18 +00:00
Thomas E. Dickey
4ceb04b5e1 ncurses 5.9 - patch 20130119
+ fixes for issues found by Coverity:
  + fix memory leak in safe_sprintf.c
  + add check for return-value in tty_update.c
  + correct initialization for -s option in test/view.c
  + add check for numeric overflow in lib_instr.c
  + improve error-checking in copywin
+ add advice in infocmp manpage for termcap users (Debian #698469).
+ add "-y" option to test/demo_termcap and test/demo_terminfo to
  demonstrate behavior with/without extended capabilities.
+ updated termcap manpage to document legacy termcap behavior for
  matching capability names.
+ modify name-comparison for tgetstr, etc., to accommodate legacy
  applications as well as to improve compatbility with BSD 4.2
  termcap implementations (Debian #698299) (cf: 980725).
2013-01-20 01:59:01 +00:00
Thomas E. Dickey
a1e63be290 ncurses 5.9 - patch 20130112
+ correct prototype in manpage for vid_puts.
+ drop ncurses/tty/tty_display.h, ncurses/tty/tty_input.h, since they
  are unused in the current driver model.
+ modify mvcur to use stdout except when called within the ncurses
  library.
+ modify vidattr and vid_attr to use stdout as documented in manpage.
+ amend changes made to buffering in 20120825 so that the low-level
  putp() call uses stdout rather than ncurses' internal buffering.
  The putp_sp() call does the same, for consistency (Redhat #892674).
2013-01-13 02:00:14 +00:00
Thomas E. Dickey
4b1ec76cb0 ncurses 5.9 - patch 20130105
+ add "-s" option to test/view.c to allow it to start in single-step
  mode, reducing size of trace files when it is used for debugging
  MinGW changes.
+ revert part of 20121222 change to tinfo_driver.c
+ add experimental logic in win_driver.c to improve optimization of
  screen updates.  This does not yet work with double-width characters,
  so it is ifdef'd out for the moment (prompted by report by Erwin
  Waterlander regarding screen flicker).
2013-01-06 01:29:15 +00:00
Thomas E. Dickey
938680fa3b ncurses 5.9 - patch 20121229
+ fix coverity warnings regarding copying into fixed-size buffers.
+ add throw-declarations in the c++ binding per Coverity warning.
+ minor changes to new-items for consistent reference to bug-report
  numbers.
2012-12-30 01:55:33 +00:00
Thomas E. Dickey
925cd3b851 ncurses 5.9 - patch 20121222
+ add *.dSYM directories to clean-rule in ncurses directory makefile,
  for Mac OS builds.
+ add a configure check for gcc option -no-cpp-precomp, which is not
  available in all Mac OS X configurations (report by Andras Salamon,
  cf: 20011208).
+ improve 20021221 workaround for broken acs, handling a case where
  that ACS_xxx character is not in the acsc string but there is a known
  wide-character which can be used.
2012-12-23 02:10:42 +00:00
Thomas E. Dickey
1c551ea75e ncurses 5.9 - patch 20121215
+ fix several warnings from clang 3.1 --analyze, includes correcting
  a null-pointer check in _nc_mvcur_resume.
+ correct display of double-width characters with MinGW port (report
  by Erwin Waterlander).
+ replace MinGW's wcrtomb(), fixing a problem with _nc_viscbuf
> fixes based on Coverity report:
+ correct coloring in test/bs.c
+ correct check for 8-bit value in _nc_insert_ch().
+ remove dead code in progs/tset.c, test/linedata.h
+ add null-pointer checks in lib_tracemse.c, panel.priv.h, and some
  test-programs.
2012-12-16 01:26:24 +00:00
Thomas E. Dickey
64f44b13d3 ncurses 5.9 - patch 20121208
+ modify test/knight.c to show the number of choices possible for
  each position in automove option, e.g., to allow user to follow
  Warnsdorff's rule to solve the puzzle.
+ modify test/hanoi.c to show the minimum number of moves possible for
  the given number of tiles (prompted by patch by Lucas Gioia).
> fixes based on Coverity report:
+ remove a few redundant checks.
+ correct logic in test/bs.c, when randomly placing a specific type of
  ship.
+ check return value from remove/unlink in tic.
+ check return value from sscanf in test/ncurses.c
+ fix a null dereference in c++/cursesw.cc
+ fix two instances of uninitialized variables when configuring for the
  terminal driver.
+ correct scope of variable used in SetSafeOutcWrapper macro.
+ set umask when calling mkstemp in tic.
+ initialize wbkgrndset() temporary variable when extended-colors are
  used.
2012-12-09 01:53:49 +00:00
Thomas E. Dickey
286b1e1135 ncurses 5.9 - patch 20121201
+ also replace MinGW's wctomb(), fixing a problem with setcchar().
+ modify test/view.c to load UTF-8 when built with MinGW by using
  regular win32 API because the MinGW functions mblen() and mbtowc()
  do not work.
2012-12-02 02:34:01 +00:00
Thomas E. Dickey
8554ac8f8b ncurses 5.9 - patch 20121124
+ correct order of color initialization versus display in some of the
  test-programs, e.g., test_addstr.c
> fixes based on Coverity report:
+ delete windows on exit from some of the test-programs.
2012-11-25 02:13:01 +00:00
Thomas E. Dickey
98d8891f42 ncurses 5.9 - patch 20121117
> fixes based on Coverity report:
+ add missing braces around FreeAndNull in two places.
+ various fixes in test/ncurses.c
+ improve limit-checks in tinfo/make_hash.c, tinfo/read_entry.c
+ correct malloc size in progs/infocmp.c
+ guard against negative array indices in test/knight.c
+ fix off-by-one limit check in test/color_name.h
+ add null-pointer check in progs/tabs.c, test/bs.c, test/demo_forms.c,
  test/inchs.c
+ fix memory-leak in tinfo/lib_setup.c, progs/toe.c,
  test/clip_printw.c, test/demo_menus.c
+ delete unused windows in test/chgat.c, test/clip_printw.c,
  test/insdelln.c, test/newdemo.c on error-return.
2012-11-18 02:58:41 +00:00
Thomas E. Dickey
da2e96ef70 ncurses 5.9 - patch 20121110
+ modify configure macro CF_INCLUDE_DIRS to put $CPPFLAGS after the
  local -I include options in case someone has set conflicting -I
  options in $CPPFLAGS (prompted by patch for ncurses/Makefile.in by
  Vassili Courzakis).
+ modify the ncurses*-config scripts to eliminate relative paths from
  the RPATH_LIST variable, e.g., "../lib" as used in installing shared
  libraries or executables.
2012-11-11 01:22:06 +00:00
Thomas E. Dickey
5ae2721913 ncurses 5.9 - patch 20121102
+ realign these related pages:
    curs_add_wchstr.3x
    curs_addchstr.3x
    curs_addstr.3x
    curs_addwstr.3x
  and fix a long-ago error in curs_addstr.3x which said that a -1
  length parameter would only write as much as fit onto one line
  (report by Reuben Thomas).
+ remove obsolete fallback _nc_memmove() for memmove()/bcopy().
+ remove obsolete fallback _nc_strdup() for strdup().
+ cancel any debug-rpm in package/ncurses.spec
+ reviewed vte-2012, reverted most of the change since it was incorrect
  based on testing with tack -TD
+ un-cancel the initc in vte-256color, since this was implemented
  starting with version 0.20 in 2009 -TD
2012-11-03 23:59:23 +00:00
Thomas E. Dickey
91fa4688e8 ncurses 5.9 - patch 20121026
+ improve malloc/realloc checking (prompted by discussion in Redhat
  #866989).
+ add ncurses test-program as "ncurses6" to the rpm- and dpkg-scripts.
+ updated configure macros CF_GCC_VERSION and CF_WITH_PATHLIST.  The
  first corrects pattern used for Mac OS X's customization of gcc.
2012-10-27 23:06:26 +00:00
Thomas E. Dickey
6b4de0a4ef ncurses 5.9 - patch 20121017
+ fix change to _nc_scroll_optimize(), which incorrectly freed memory
  (Redhat #866989).
2012-10-17 09:57:52 +00:00
Thomas E. Dickey
af3da5b5f0 ncurses 5.9 - patch 20121013
+ add vte-2012, gnome-2012, making these the defaults for vte/gnome
  (patch by Christian Persch).
2012-10-13 23:32:37 +00:00
Thomas E. Dickey
c3e8eb8e74 ncurses 5.9 - patch 20121006
+ improve CF_GCC_VERSION to work around Debian's customization of gcc
  --version message.
+ improve configure macros as done in byacc:
  + drop 2.13 compatibility; use 2.52.xxxx version only since EMX port
    has used that for a while.
  + add 3rd parameter to AC_DEFINE's to allow autoheader to run, i.e.,
    for experimental use.
  + remove unused configure macros.
+ modify configure script and makefiles to quiet new autoconf warning
  for LIBS_TO_MAKE variable.
+ modify configure script to show $PATH_SEPARATOR variable.
+ update config.guess, config.sub
2012-10-07 01:23:59 +00:00
Thomas E. Dickey
cabcc699fe ncurses 5.9 - patch 20120922
+ modify setupterm to set its copy of TERM to "unknown" if configured
  for the terminal driver and TERM was null or empty.
+ modify treatment of TERM variable for MinGW port to allow explicit
  use of the windows console driver by checking if $TERM is set to
  "#win32con" or an abbreviation of that.
+ undo recent change to fallback definition of vsscanf() to build with
  older Solaris compilers (cf: 20120728).
  to help with MinGW port.
+ modifications for MinGW port to make wide-character display usable.
2012-09-22 23:21:49 +00:00
Thomas E. Dickey
a3754ea95e ncurses 5.9 - patch 20120908
+ add test-screens to test/ncurses to show 256-characters at a time,
  to help with mingw port.
2012-09-09 00:20:10 +00:00
Thomas E. Dickey
cdbe3d3df7 ncurses 5.9 - patch 20120903
+ simplify varargs logic in lib_printw.c; va_copy is no longer needed
  there.
+ modifications for mingw port to make wide-character display usable.
2012-09-03 22:21:48 +00:00
Thomas E. Dickey
29ee95cea3 ncurses 5.9 - patch 20120902
+ regenerate configure script (report by Sven Joachim, cf: 20120901).
2012-09-03 00:51:11 +00:00
Thomas E. Dickey
0573f2d712 ncurses 5.9 - patch 20120901
+ add a null-pointer check in _nc_flush (cf: 20120825).
+ fix a case in _nc_scroll_optimize() where the _oldnums_list array
  might not be allocated.
+ improve comparisons in configure.in for unset shell variables.
2012-09-02 01:02:56 +00:00
Thomas E. Dickey
55051e7462 ncurses 5.9 - patch 20120826
+ increase size of ncurses' output-buffer, in case of very small
  initial screen-sizes.
+ fix evaluation of TERMINFO and TERMINFO_DIRS default values as needed
  after changes to use --datarootdir (reports by Gabriele Balducci,
  Roumen Petrov).
2012-08-27 01:13:03 +00:00
Thomas E. Dickey
6c611e6696 ncurses 5.9 - patch 20120825
+ change output buffering scheme, using buffer maintained by ncurses
  rather than stdio, to avoid problems with SIGTSTP handling (report
  by Brian Bloniarz).
2012-08-25 23:18:18 +00:00
Thomas E. Dickey
d2650934c6 ncurses 5.9 - patch 20120811
+ update autoconf patch to 2.52.20120811, adding --datarootdir
  (prompted by discussion with Erwin Waterlander).
+ improve description of --enable-reentrant option in README and the
  INSTALL file.
+ add nsterm-256color, make this the default nsterm -TD
+ remove bw from nsterm-bce, per testing with tack -TD
2012-08-12 01:10:31 +00:00
Thomas E. Dickey
634674af07 ncurses 5.9 - patch 20120804
+ update test/configure, adding check for tinfo library.
+ improve limit-checks for the getch fifo (report by Werner Fink).
+ fix a remaining mismatch between $with_echo and the symbols updated
  by CF_DISABLE_ECHO affecting parameters for mk-2nd.awk (report by
  Sven Joachim, cf:  20120317).
+ modify followup check for pkg-config's library directory in the
  --enable-pc-files option to validate syntax (report by Sven Joachim,
  cf: 20110716).
2012-08-04 23:37:25 +00:00
Thomas E. Dickey
5bfda87916 ncurses 5.9 - patch 20120728
+ correct path for ncurses_mingw.h in include/headers, in case build
  is done outside source-tree (patch by Roumen Petrov).
+ modify some older xterm entries to align with xterm source -TD
+ separate "xterm-old" alias from "xterm-r6" -TD
+ add E3 extended capability to xterm-basic and putty -TD
+ parenthesize parameters of other macros in curses.h -TD
+ parenthesize parameter of COLOR_PAIR and PAIR_NUMBER in curses.h
  in case it happens to be a comma-expression, etc.  (patch by Nick
  Black).
2012-07-29 00:02:59 +00:00
Thomas E. Dickey
173dd87081 ncurses 5.9 - patch 20120721
+ improved form_request_by_name() and menu_request_by_name().
+ eliminate two fixed-size buffers in toe.c
+ extend use_tioctl() to have expected behavior when use_env(FALSE) and
  use_tioctl(TRUE) are called.
+ modify ncurses test-program, adding -E and -T options to demonstrate
  use_env() versus use_tioctl().
2012-07-22 00:50:03 +00:00
Thomas E. Dickey
26001c55f3 ncurses 5.9 - patch 20120714
+ add use_tioctl() function (adapted from patch by Werner Fink,
  Novell #769788):
2012-07-15 00:40:37 +00:00
Thomas E. Dickey
471bc00736 ncurses 5.9 - patch 20120707
+ add ncurses_mingw.h to installed headers (prompted by patch by
  Juergen Pfeifer).
+ clarify return-codes from wgetch() in response to SIGWINCH (prompted
  by Novell #769788).
+ modify resizeterm() to always push a KEY_RESIZE onto the fifo, even
  if screensize is unchanged.  Modify _nc_update_screensize() to push a
  KEY_RESIZE if there was a SIGWINCH, even if it does not call
  resizeterm().  These changes eliminate the case where a SIGWINCH is
  received, but ERR returned from wgetch or wgetnstr because the screen
  dimensions did not change (Novell #769788).
2012-07-07 23:45:45 +00:00
Thomas E. Dickey
cc0205ede8 ncurses 5.9 - patch 20120630
+ add --enable-interop to sample package scripts (suggested by Juergen
  Pfeifer).
+ update CF_PATH_SYNTAX macro, from mawk changes.
+ modify mk-0th.awk to allow for generating llib-ltic, etc., though
  some work is needed on cproto to work with lib_gen.c to update
  llib-lncurses.
+ remove redundant getenv() cal in database-iterator leftover from
  cleanup in 20120622 changes (report by Sven Joachim).
2012-06-30 23:07:18 +00:00
Thomas E. Dickey
c2ed42e6ca ncurses 5.9 - patch 20120622
+ add -d, -e and -q options to test/demo_terminfo and test/demo_termcap
+ fix caching of environment variables in database-iterator (patch by
  Philippe Troin, Redhat #831366).
2012-06-23 00:36:11 +00:00
Thomas E. Dickey
b6d0d9ad9e ncurses 5.9 - patch 20120616
+ add configure check to distinguish clang from gcc to eliminate
  warnings about unused command-line parameters when compiler warnings
  are enabled.
+ improve behavior when updating terminfo entries which are hardlinked
  by allowing for the possibility that an alias has been repurposed to
  a new primary name.
+ fix some strict compiler warnings based on package scripts.
+ further fixes for configure check for working poll (Debian #676461).
2012-06-16 23:57:20 +00:00
Thomas E. Dickey
1d7867d33e ncurses 5.9 - patch 20120608
+ fix an uninitialized variable in -c/-n logic for infocmp changes
  (cf: 20120526).
+ corrected fix for building c++ binding with clang 3.0 (report/patch
  by Richard Yao, Gentoo #417613, cf: 20110409)
+ correct configure check for working poll, fixing the case where stdin
  is redirected, e.g., in rpm/dpkg builds (Debian #676461).
+ add rpm- and dpkg-scripts, to test those build-environments.
  The resulting packages are used only for testing.
2012-06-09 00:43:33 +00:00