Commit Graph

379 Commits

Author SHA1 Message Date
Thomas E. Dickey
34d602f272 ncurses 5.9 - patch 20140524
+ fix typo in ncurses manpage for the NCURSES_NO_MAGIC_COOKIE
  environment variable.
+ improve discussion of input-echoing in curs_getch.3x
+ clarify discussion in curs_addch.3x of wrapping.
+ modify parametrized.h to make fln non-padded.
+ correct several entries which had termcap-style padding used in
  terminfo: adm21, aj510, alto-h19, att605-pc, x820 -TD
+ correct syntax for padding in some entries: dg211, h19 -TD
+ correct ti924-8 which had confused padding versus octal escapes -TD
+ correct padding in sbi entry -TD
+ fix an old bug in the termcap emulation; "%i" was ignored in tparm()
  because the parameters to be incremented were already on the internal
  stack (report by Corinna Vinschen).
+ modify tic's "-c" option to take into account the "-C" option to
  activate additional checks which compare the results from running
  tparm() on the terminfo expressions versus the translated termcap
  expressions.
+ modify tic to allow it to read from FIFOs (report by Matthieu Fronton,
  cf: 20120324).
> patches by Nicolas Boulenguez:
+ explicit dereferences to suppress some style warnings.
+ when c_varargs_to_ada.c includes its header, use double quotes
  instead of <>.
+ samples/ncurses2-util.adb:  removed unused with clause.  The warning
  was removed by an obsolete pragma.
+ replaced Unreferenced pragmas with Warnings (Off).  The latter,
  available with older GNATs, needs no configure test.  This also
  replaces 3 untested Unreferenced pragmas.
+ simplified To_C usage in trace handling.  Using two parameters allows
  some basic formatting, and avoids a warning about security with some
  compiler flags.
+ for generated Ada sources, replace many snippets with one pure
  package.
+ removed C_Chtype and its conversions.
+ removed C_AttrType and its conversions.
+ removed conversions between int, Item_Option_Set, Menu_Option_Set.
+ removed int, Field_Option_Set, Item_Option_Set conversions.
+ removed C_TraceType, Attribute_Option_Set conversions.
+ replaced C.int with direct use of Eti_Error, now enumerated.  As it
  was used in a case statement, values were tested by the Ada compiler
  to be consecutive anyway.
+ src/Makefile.in: remove duplicate stanza
+ only consider using a project for shared libraries.
+ style. Silent gnat-4.9 warning about misplaced "then".
+ generate shared library project to honor ADAFLAGS, LDFLAGS.
2014-05-25 01:22:18 +00:00
Thomas E. Dickey
c9c32236e2 ncurses 5.9 - patch 20140510
+ cleanup recently introduced compiler warnings for MingW port.
+ workaround for ${MAKEFLAGS} configure check versus GNU make 4.0,
  which introduces more than one gratuitous incompatibility.
2014-05-11 00:01:10 +00:00
Thomas E. Dickey
d129a54c07 ncurses 5.9 - patch 20140503
+ add vt520ansi terminfo entry (patch by Mike Gran)
+ further improve MinGW support for the scenario where there is an
  ANSI-escapes handler such as ansicon running in the console window
  (patch by Juergen Pfeifer).
2014-05-03 23:36:44 +00:00
Thomas E. Dickey
7d3e03f12f ncurses 5.9 - patch 20140426
+ add --disable-lib-suffixes option (adapted from patch by Juergen
  Pfeifer).
+ merge some changes from Juergen Pfeifer's work with MSYS2, to
  simplify later merging:
  + use NC_ISATTY() macro for isatty() in library
  + add _nc_mingw_isatty() and related functions to windows-driver
  + rename terminal driver entrypoints to simplify grep's
+ remove a check in the sp-funcs flavor of newterm() which allowed only
  the first call to newterm() to succeed (report by Thomas Beierlein,
  cf: 20090927).
2014-04-26 21:45:12 +00:00
Thomas E. Dickey
3a2f63eb5a ncurses 5.9 - patch 20140419
+ update config.guess, config.sub from
	http://git.savannah.gnu.org/cgit/config.git
2014-04-20 00:09:24 +00:00
Thomas E. Dickey
63e3cafac1 ncurses 5.9 - patch 20140412
+ modify configure script:
  + drop the -no-gcc option from Intel compiler, from lynx changes.
  + extend the --with-hashed-db configure option to simplify building
    with different versions of Berkeley database using FreeBSD ports.
+ improve initialization for MinGW port (patch by Juergen Pfeifer):
  + enforce Windows-style path-separator if cross-compiling,
  + add a driver-name method to each of the drivers,
  + allow the Windows driver name to match "unknown", ignoring case,
  + lengthen the built-in name for the Windows console driver to
    "#win32console", and
  + move the comparison of driver-names allowing abbreviation, e.g.,
    to "#win32con" into the Windows console driver.
2014-04-13 00:46:18 +00:00
Thomas E. Dickey
0a402bd0b8 ncurses 5.9 - patch 20140329
+ add check in tic for mismatch between ccc and initp/initc
+ cancel ccc in putty-256color and konsole-256color for consistency
  with the cancelled initc capability (patch by Sven Zuhlsdorf).
+ add xterm+256setaf building block for various terminals which only
  get the 256-color feature half-implemented -TD
+ updated "st" entry (leaving the 0.1.1 version as "simpleterm") to
  0.4.1 -TD
2014-03-30 00:23:11 +00:00
Thomas E. Dickey
1165d1f8ac ncurses 5.9 - patch 20140323
+ fix typo in "mlterm" entry (report by Gabriele Balducci) -TD
2014-03-23 21:22:47 +00:00
Thomas E. Dickey
e3509ece56 ncurses 5.9 - patch 20140322
+ use types from <stdint.h> in sample build-scripts for chtype, etc.
+ modify configure script and curses.h.in to allow the types specified
  using --with-chtype and related options to be defined in <stdint.h>
+ add terminology entry -TD
+ add mlterm3 entry, use that as "mlterm" -TD
+ inherit mlterm-256color from mlterm -TD
2014-03-23 00:28:32 +00:00
Thomas E. Dickey
f8a14dc012 ncurses 5.9 - patch 20140315
+ modify _nc_New_TopRow_and_CurrentItem() to ensure that the menu's
  top-row is adjusted as needed to ensure that the current item is
  on the screen (patch by Johann Klammer).
+ add wgetdelay() to retrieve _delay member of WINDOW if it happens to
  be opaque, e.g., in the pthread configuration (prompted by patch by
  Soren Brinkmann).
2014-03-16 00:46:02 +00:00
Thomas E. Dickey
ef2d99350e ncurses 5.9 - patch 20140308
+ modify ifdef in read_entry.c to handle the case where
  NCURSES_USE_DATABASE is not defined (patch by Xin Li).
+ add cast in form_driver_w() to fix ARM build (patch by Xin Li).
+ add logic to win_driver.c to save/restore screen contents when not
  allocating a console-buffer (cf: 20140215).
2014-03-09 00:21:30 +00:00
Thomas E. Dickey
5ad1bd48d7 ncurses 5.9 - patch 20140301
+ clarify error-returns from newwin (report by Ruslan Nabioullin).
2014-03-02 01:49:38 +00:00
Thomas E. Dickey
1ced97640a ncurses 5.9 - patch 20140222
+ fix some compiler warnings in win_driver.c
+ updated notes for wsvt25 based on tack and vttest -TD
+ add teken entry to show actual properties of FreeBSD's "xterm"
  console -TD
2014-02-23 01:55:31 +00:00
Thomas E. Dickey
683b593ffa ncurses 5.9 - patch 20140215
+ in-progress changes to win_driver.c to implement output without
  allocating a console-buffer.  This uses a pre-existing environment
  variable NCGDB used by Juergen Pfeifer for debugging (prompted by
  discussion with Erwin Waterlander regarding Console2, which hangs
  when reading in an allocated console-buffer).
+ add -t option to gdc.c, and modify to accept "S" to step through the
  scrolling-stages.
+ regenerate NCURSES-Programming-HOWTO.html to fix some of the broken
  html emitted by docbook.
2014-02-16 01:25:11 +00:00
Thomas E. Dickey
44be23e277 ncurses 5.9 - patch 20140209
+ modify CF_XOPEN_SOURCE macro to omit followup check to determine if
  _XOPEN_SOURCE can/should be defined.  g++ 4.7.2 built on Solaris 10
  has some header breakage due to its own predefinition of this symbol
  (report by Jean-Pierre Flori, Sage #15796).
2014-02-10 01:40:35 +00:00
Thomas E. Dickey
4f84dbbd02 ncurses 5.9 - patch 20140201
+ add/use symbol NCURSES_PAIRS_T like NCURSES_COLOR_T, to illustrate
  which "short" types are for color pairs and which are color values.
+ fix build for s390x, by correcting field bit offsets in generated
  representation clauses when int=32 long=64 and endian=big, or at
  least on s390x (patch by Nicolas Boulenguez).
+ minor cleanup change to test/form_driver_w.c (patch by Gaute Hope).
2014-02-02 00:11:40 +00:00
Thomas E. Dickey
3ee7a3a610 ncurses 5.9 - patch 20140125
+ remove unnecessary ifdef's in Ada95/gen/gen.c, which reportedly do
  not work as is with gcc 4.8 due to fixes using chtype cast made for
  new compiler warnings by gcc 4.8 in 20130824 (Debian #735753, patch
  by Nicolas Boulenguez).
2014-01-26 01:51:00 +00:00
Thomas E. Dickey
b8da182f14 ncurses 5.9 - patch 20140118
+ apply includesubdir variable which was introduced in 20130805 to
  gen-pkgconfig.in (Debian #735782).
2014-01-19 00:49:51 +00:00
Thomas E. Dickey
2e5d72d639 ncurses 5.9 - patch 20131221
+ further improved man2html, used this to fix broken links in html
  manpages.  See
  ftp://invisible-island.net/ncurses/patches/man2html
2013-12-21 23:12:46 +00:00
Thomas E. Dickey
cc387b11f4 ncurses 5.9 - patch 20131214
+ modify configure-script/ifdef's to allow OLD_TTY feature to be
  suppressed if the type of ospeed is configured using the option
  --with-ospeed to not be a short.  By default, it is a short for
  termcap-compatibility (adapted from suggestion by Christian
  Weisgerber).
+ correct a typo in _nc_baudrate() (patch by Christian Weisgerber,
  cf: 20061230).
+ fix a few -Wlogical-op warnings.
+ updated llib-l* files.
2013-12-15 02:33:31 +00:00
Thomas E. Dickey
02788b9c63 ncurses 5.9 - patch 20131207
+ add form_driver_w() entrypoint to wide-character forms library, as
  well as test program form_driver_w (adapted from patch by Gaute
  Hope).
2013-12-08 01:49:22 +00:00
Thomas E. Dickey
7bffc48560 ncurses 5.9 - patch 20131123
+ minor fix for CF_GCC_WARNINGS to special-case options which are not
  recognized by clang.
2013-11-24 00:40:08 +00:00
Thomas E. Dickey
89407f55b3 ncurses 5.9 - patch 20131116
+ add special case to configure script to move _XOPEN_SOURCE_EXTENDED
  definition from CPPFLAGS to CFLAGS if it happens to be needed for
  Solaris, because g++ errors with that definition (report by
  Jean-Pierre Flori, Sage #15268).
+ correct logic in infocmp's -i option which was intended to ignore
  strings which correspond to function-keys as candidates for piecing
  together initialization- or reset-strings.  The problem dates to
  1.9.7a, but was overlooked until changes in -Wlogical-op warnings for
  gcc 4.8 (report by David Binderman).
+ updated CF_GCC_WARNINGS to documented options for gcc 4.9.0, adding
  checks for -Wextra, -Wignored-qualifiers and -Wlogical-op
+ updated CF_GCC_WARNINGS to documented options for gcc 4.9.0, moving
  checks for -Wextra and -Wdeclaration-after-statement into the macro,
  and adding checks for -Wignored-qualifiers, -Wlogical-op and
  -Wvarargs
+ updated CF_CURSES_UNCTRL_H and CF_SHARED_OPTS macros from ongoing
  work on cdk.
+ update config.sub from
	http://git.savannah.gnu.org/cgit/config.git
2013-11-17 00:20:49 +00:00
Thomas E. Dickey
67ab4b308e ncurses 5.9 - patch 20131110
+ minor cleanup of terminfo.tail
2013-11-11 02:07:31 +00:00
Thomas E. Dickey
37419a9e52 ncurses 5.9 - patch 20131102
+ use TS extension to describe xterm's title-escapes -TD
+ modify terminator and nsterm-s to use xterm+sl-twm building block -TD
+ update hurd.ti, add xenl to reflect 2011-03-06 change in
  http://git.savannah.gnu.org/cgit/hurd/hurd.git/log/console/display.c
  (Debian #727119).
+ simplify pfkey expression in ansi.sys -TD
2013-11-02 22:03:16 +00:00
Thomas E. Dickey
e6319890fa ncurses 5.9 - patch 20131027
+ correct/simplify ifdef's for cur_term versus broken-linker and
  reentrant options (report by Jean-Pierre Flori, cf: 20090530).
+ modify release/version combinations in test build-scripts to make
  them more consistent with other packages.
2013-10-28 08:09:20 +00:00
Thomas E. Dickey
5258456703 ncurses 5.9 - patch 20131019
+ add nc_mingw.h to installed headers for MinGW port; needed for
  compiling ncurses-examples.
+ add rpm-script for testing cross-compile of ncurses-examples.
2013-10-20 01:21:20 +00:00
Thomas E. Dickey
ff4cca6e1d ncurses 5.9 - patch 20131014
+ fix new typo in CF_ADA_INCLUDE_DIRS macro (report by Roumen Petrov).
2013-10-14 22:13:49 +00:00
Thomas E. Dickey
73ab536b63 ncurses 5.9 - patch 20131012
+ fix a few compiler warnings in progs and test.
+ minor fix to package/debian-mingw/rules, do not strip dll's.
+ minor fixes to configure script for empty $prefix, e.g., when doing
  cross-compiles to MinGW.
+ add script for building test-packages of binaries cross-compiled to
  MinGW using NSIS.
2013-10-13 00:58:13 +00:00
Thomas E. Dickey
a0bb9c4041 ncurses 5.9 - patch 20131005
+ minor fixes for ncurses-example package and makefile.
+ add scripts for test-builds of cross-compiler packages for ncurses6
  to MinGW.
2013-10-06 00:21:13 +00:00
Thomas E. Dickey
e2dee48666 ncurses 5.9 - patch 20130928
+ some build-fixes for ncurses-examples with NetBSD-6.0 curses, though
  it lacks some common functions such as use_env() which is not yet
  addressed.
+ build-fix and some compiler warning fixes for ncurses-examples with
  OpenBSD 5.3
+ fix a possible null-pointer reference in a trace message from newterm.
+ quiet a few warnings from NetBSD 6.0 namespace pollution by
  nonstandard popcount() function in standard strings.h header.
+ ignore g++ 4.2.1 warnings for "-Weffc++" in c++/cursesmain.cc
+ fix a few overlooked places for --enable-string-hacks option.
2013-09-29 01:03:55 +00:00
Thomas E. Dickey
2e507e7570 ncurses 5.9 - patch 20130921
+ fix typo in curs_attr.3x (patch by Sven Joachim, cf: 20130831).
+ build-fix for --with-shared option for DragonFly and FreeBSD (report
  by Rong-En Fan, cf: 20130727).
2013-09-21 22:57:50 +00:00
Thomas E. Dickey
b802d89ac4 ncurses 5.9 - patch 20130907
+ build-fixes for MSYS for two test-programs (patches by Ray Donnelly,
  Alexey Pavlov).
+ revert change to two of the dpkg format files, to work with dpkg
  before/after Debian #700177.
+ fix gcc -Wconversion warning in wattr_get() macro.
+ add msys and msysdll to known host/configuration types (patch by
  Alexey Pavlov).
+ modify CF_RPATH_HACK configure macro to not rely upon "-u" option
  of sort, improving portability.
+ minor improvements for test-programs from reviewing Solaris port.
+ update config.guess, config.sub from
	http://git.savannah.gnu.org/cgit/config.git
2013-09-08 00:00:20 +00:00
Thomas E. Dickey
952539d2f6 ncurses 5.9 - patch 20130831
+ modify test/ncurses.c b/B tests to display lines only for the
  attributes which a given terminal supports, to make room for an
  italics test.
+ completed ncv table in terminfo.tail; it did not list the wide
  character codes listed in X/Open Curses issue 7.
+ add A_ITALIC extension (prompted by discussion with Egmont Koblinger).
2013-08-31 21:14:42 +00:00
Thomas E. Dickey
dff527f594 ncurses 5.9 - patch 20130824
+ fix some gcc 4.8 -Wconversion warnings.
+ change format of dpkg test-scripts to quilted to work around bug
  introduced by Debian #700177.
+ discard cached keyname() values if meta() is changed after a value
  was cached using (report by Kurban Mallachiev).
2013-08-25 00:03:40 +00:00
Thomas E. Dickey
f886673eef ncurses 5.9 - patch 20130816
+ add checks in tic to warn about terminals which lack cursor
  addressing, capabilities or having those, are marked as hard_copy or
  generic_type.
+ use --without-progs in mingw-ncurses rpm.
+ split out _nc_init_termtype() from alloc_entry.c to use in MinGW
  port when tic and other programs are not needed.
2013-08-18 00:20:29 +00:00
Thomas E. Dickey
1d743ae945 ncurses 5.9 - patch 20130805
+ minor fixes to the --disable-overwrite logic, to ensure that the
  configured $(includedir) is not cancelled by the mingwxx-filesystem
  rpm macros.
+ add --disable-db-install configure option, to simplify building
  cross-compile support packages.
+ add mingw-ncurses.spec file, for testing cross-compiles.
2013-08-05 09:18:54 +00:00
Thomas E. Dickey
7087871f80 ncurses 5.9 - patch 20130727
+ improve configure macros from ongoing work on cdk, dialog, xterm:
  + CF_ADD_LIB_AFTER - fix a problem with -Wl options
  + CF_RPATH_HACK - add missing result-message
  + CF_SHARED_OPTS - modify to use $rel_builddir in cygwin and mingw
    dll symbols (which can be overridden) rather than explicit "../".
  + CF_SHARED_OPTS - modify NetBSD and DragonFly symbols to use ${CC}
    rather than ${LD} to improve rpath support.
  + CF_SHARED_OPTS - add a symbol to denote the temporary files that
    are created by the macro, to simplify clean-rules.
  + CF_X_ATHENA - trim extra libraries to work with -Wl,--as-needed
+ fix a regression in hashed-database support for NetBSD, which uses
  the key-size differently from other implementations (cf: 20121229).
2013-07-28 00:32:27 +00:00
Thomas E. Dickey
7517964d43 ncurses 5.9 - patch 20130720
+ further improvements for setupterm manpage, clarifying the
  initialization of cur_term.
2013-07-20 20:58:29 +00:00
Thomas E. Dickey
ba78eb501a ncurses 5.9 - patch 20130713
+ improve manpages for initscr and setupterm.
+ minor compiler-warning fixes
2013-07-14 01:08:41 +00:00
Thomas E. Dickey
ffc2db8cc2 ncurses 5.9 - patch 20130706
+ add fallback defs for <inttypes.h> and <stdint.h> (cf: 20120225).
+ add check for size of wchar_t, use that to suppress a chunk of
  wcwidth.h in MinGW port.
+ quiet linker warnings for MinGW cross-compile with dll's using the
  --enable-auto-import flag.
+ add ncurses.map rule to ncurses/Makefile to help diagnose symbol
  table issues.
2013-07-06 22:59:22 +00:00
Thomas E. Dickey
d3aaa2f7ce ncurses 5.9 - patch 20130622
+ modify the clear program to take into account the E3 extended
  capability to clear the terminal's scrollback buffer (patch by
  Miroslav Lichvar, Redhat #815790).
+ clarify in resizeterm manpage that LINES and COLS are updated.
+ updated ansi example in terminfo.tail, correct misordered example
  of sgr.
+ fix other doclifter warnings for manpages
+ remove unnecessary ".ta" in terminfo.tail, add missing ".fi"
  (patch by Eric Raymond).
2013-06-22 23:39:25 +00:00
Thomas E. Dickey
a7de4c96ca ncurses 5.9 - patch 20130615
+ minor changes to some configure macros to make them more reusable.
+ fixes for tabs program (prompted by report by Nick Andrik):
  + corrected logic in command-line parsing of -a and -c predefined
    tab-lists options.
  + allow "-0" and "-8" options to be combined with others, e.g.,"-0d".
  + make warning messages more consistent with the other utilities by
    not printing the full pathname of the program.
  + add -V option for consistency with other utilities.
+ fix off-by-one in columns for tabs program when processing an option
  such as "-5" (patch by Nick Andrik).
2013-06-15 22:39:16 +00:00
Thomas E. Dickey
e6f4ffe150 ncurses 5.9 - patch 20130608
+ add to test/demo_forms.c examples of using the menu-hooks as well
  as showing how the menu item user-data can be used to pass a callback
  function pointer.
+ add test/dots_termcap.c
+ remove setupterm call from test/demo_termcap.c
+ build-fix if --disable-ext-funcs configure option is used.
+ modified test/edit_field.c and test/demo_forms.c to move the lengths
  into a user-data structure, keeping the original string for later
  expansion to free-format input/out demo.
+ modified test/demo_forms.c to load data from file.
+ added note to clarify Terminal.app's non-emulation of the various
  terminal types listed in the preferences dialog -TD
+ fix regression in error-reporting in lib_setup.c (Debian #711134,
  cf: 20121117).
+ build-fix for a case where --enable-broken_linker and
  --enable-reentrant options are combined (report by George R Goffe).
2013-06-09 01:17:29 +00:00
Thomas E. Dickey
4e793faf65 ncurses 5.9 - patch 20130525
+ modify mvcur() to distinguish between internal use by the ncurses
  library, and external callers, preventing it from reading the content
  of the screen which is only nonblank when curses calls have updated
  it.  This makes test/dots_mvcur.c avoid painting colored cells in
  the left margin of the display.
+ minor fix to test/dots_mvcur.c
+ move configured symbols USE_DATABASE and USE_TERMCAP to term.h as
  NCURSES_USE_DATABASE and NCURSES_USE_TERMCAP to allow consistent
  use of these symbols in term_entry.h
2013-05-26 00:59:52 +00:00
Thomas E. Dickey
761e4f0825 ncurses 5.9 - patch 20130518
+ corrected ifdefs in test/testcurs.c to allow comparison of mouse
  interface versus pdcurses (cf: 20130316).
+ add pow() to configure-check for math library, needed since
  20121208 for test/hanoi (Debian #708056).
+ regenerated html manpages.
+ update doctype used for html documentation.
2013-05-19 00:22:02 +00:00
Thomas E. Dickey
8966d25750 ncurses 5.9 - patch 20130511
+ move nsterm-related entries out of "obsolete" section to more
  plausible "ansi consoles" -TD
+ additional cleanup of table-of-contents by reordering -TD
+ revise fix for check for 8-bit value in _nc_insert_ch(); prior fix
  prevented inserts when video attributes were attached to the data
  (cf: 20121215) (Redhat #959534).
2013-05-11 21:33:59 +00:00
Thomas E. Dickey
ea40e3c5ce ncurses 5.9 - patch 20130504
+ fixes for issues found by Coverity:
  + correct FNKEY() macro in progs/dump_entry.c, allowing kf11-kf63 to
    display when infocmp's -R option is used for HP or AIX subsets.
  + fix dead-code issue with test/movewindow.c
  + improve limited-checking in _nc_read_termtype().
2013-05-04 23:59:52 +00:00
Thomas E. Dickey
fd52bfa497 ncurses 5.9 - patch 20130427
+ fix clang 3.2 warning in progs/dump_entry.c
+ drop AC_TYPE_SIGNAL check; ncurses relies on c89 and later.
2013-04-27 23:24:20 +00:00
Thomas E. Dickey
32f1c9b1a0 ncurses 5.9 - patch 20130413
+ add MinGW to cases where ncurses installs by default into /usr
  (prompted by discussion with Daniel Silva Ferreira).
+ add -D option to infocmp's usage-message (patch by Miroslav Lichvar).
+ add a missing 'int' type for main function in configure check for
  type of bool variable, to work with clang 3.2 (report by Dmitri
  Gribenko).
+ improve configure check for static_cast, to work with clang 3.2
  (report by Dmitri Gribenko).
+ re-order rule for demo.o and macros defining header dependencies in
  c++/Makefile.in to accommodate gmake (report by Dmitri Gribenko).
2013-04-14 00:01:10 +00:00