History log of /openbsd-current/usr.bin/tic/tic.c
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 1.35 17-Oct-2023 nicm

Update ncurses and associated libraries (form, panel, menu) to
6.4-20230826 (from 5.7-20081102).

Based on result from Thomas Dickey's ncu2openbsd script and then
modified. Switches to the upstream tput. Major bump for the ncurses
libraries and for libedit and libreadline.

Help from tb, millert.

ok deraadt sthen


Revision tags: OPENBSD_6_6_BASE OPENBSD_6_7_BASE OPENBSD_6_8_BASE OPENBSD_6_9_BASE OPENBSD_7_0_BASE OPENBSD_7_1_BASE OPENBSD_7_2_BASE OPENBSD_7_3_BASE OPENBSD_7_4_BASE
# 1.34 28-Jun-2019 deraadt

When system calls indicate an error they return -1, not some arbitrary
value < 0. errno is only updated in this case. Change all (most?)
callers of syscalls to follow this better, and let's see if this strictness
helps us in the future.


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE
# 1.33 11-Nov-2015 deraadt

exit() after perror() for pledge failure. Perhaps this got introduced
as a test idiom, either when pledge was young or during the transition
to strings.... dunno


# 1.32 10-Oct-2015 deraadt

pledge "stdio rpath wpath cpath". as a curses program, I expected this
to maybe need "tty", but have not found a path which calls those kind
of curses functions.
ok doug


Revision tags: OPENBSD_5_5_BASE OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.31 28-Nov-2013 deraadt

unsigned char for ctype
ok krw okan


Revision tags: OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE
# 1.30 12-Jan-2010 nicm

Update to ncurses 5.7, with local changes reapplied.

This is around eight years worth of changes (previously we were around ncurses
5.2), too many to list - many bug fixes and also a few new functions.

A major bump for libcurses, libpanel, libform and libmenu.

ok deraadt


Revision tags: OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE
# 1.29 10-Oct-2006 cloder

fgets(3) returns NULL on error, not 0. No functional change, but it makes
the code easier to read.
OK deraadt


Revision tags: OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE
# 1.28 21-Oct-2003 deraadt

strdup check missing; noted by nimadeus@pandora.be


Revision tags: OPENBSD_3_4_BASE
# 1.27 02-Jul-2003 avsm

bump randomness of mktemp to from 6 to 10 X's, as recommended by mktemp(3)


# 1.26 14-Apr-2003 deraadt

spring cleaning; ok millert


Revision tags: OPENBSD_2_9_BASE OPENBSD_3_0_BASE OPENBSD_3_1_BASE OPENBSD_3_2_BASE OPENBSD_3_3_BASE
# 1.25 22-Feb-2001 millert

Update to ncurses-5.2-20010210:
o remove macro callPutChar() from tty_update.c, since this is no longer
needed (reported by Philippe Blain).
o add a null-pointer check in tic.c to handle the case when the input
file is really empty. Modify the next_char() function in comp_scan.c
to allow arbitrarily long lines, and incidentally supply a newline to
files that do not end in a newline. These changes improve tic's
recovery from attempts to read binary files, e.g., its output from
the terminfo database (reported by Bernhard Rosenkraenzer).
o revert change to c++/demo.cc from 20001209, which changed definition
of main() apparently to accommodate cygwin linker, but broke the demo
program.


# 1.24 29-Jan-2001 niklas

$OpenBSD$


# 1.23 22-Jan-2001 millert

Update to ncurses-5.2-20010114


Revision tags: OPENBSD_2_8_BASE
# 1.22 22-Oct-2000 millert

update to ncurses 5.2


# 1.21 08-Oct-2000 millert

update to ncurses-5.1-20001007


# 1.20 19-Jun-2000 millert

ncurses-5.0-20000617


Revision tags: OPENBSD_2_7_BASE
# 1.19 26-Mar-2000 millert

Update to ncurses-5.0-20000325


# 1.18 13-Mar-2000 millert

update to ncurses-5.0-20000311


# 1.17 10-Mar-2000 millert

Update to ncurses-5.0-20000304


# 1.16 16-Jan-2000 millert

Update to ncurses-5.0-20000115:
+ additional fixes for non-bce terminals (handling of delete_character)
to work when assume_default_colors() is not specified.
+ modify warning message from _nc_parse_entry() regarding extended
capability names to print only if tic/infocmp/toe have the -v flag
set, and not at all in ordinary user applications. Otherwise, this
warning would be shown for screen's extended capabilities in programs
that use the termcap interface.
+ modify use of _nc_tracing from programs such as tic so their debug
level is not in the same range as values set by trace() function.
+ small panel header cleanup (patch by Juergen Pfeifer).


# 1.15 12-Jan-2000 millert

usage() should go to stderr, not stdout.


# 1.14 12-Dec-1999 millert

Update to ncurses-19991211:
o treat as untranslatable to termcap those terminfo strings which
contain non-decimal formatting, e.g., hexadecimal or octal.
o correct commented-out capabilities that cannot be translated to
termcap, which did not check if a colon must be escaped.
o correct termcap translation for "%>" and "%+", which did not check
if a colon must be escaped, for instance.
o use save_string/save_char for _nc_captoinfo() to eliminate fixed
buffer (originally for _nc_infotocap() in 960301 -TD).
o correct expression used for terminfo equivalent of termcap %B,
adjust regent100 entry which uses this.
o some cleanup and commenting of ad hoc cases in _nc_infotocap().
o eliminate a fixed-buffer in tic, used for translating comments.
o add manpage for infotocap.


# 1.13 06-Dec-1999 millert

update to ncurses-5.0-19991204


# 1.12 28-Nov-1999 millert

update to ncurses-5.0-19991127


Revision tags: OPENBSD_2_6_BASE
# 1.11 27-Jun-1999 millert

ncurses-5.0-990626


Revision tags: OPENBSD_2_5_BASE
# 1.10 22-Mar-1999 millert

back out local change that should not have escaped


# 1.9 16-Mar-1999 millert

ncurses-4.2-990316


# 1.8 11-Mar-1999 millert

Add -G flag; ncurses-4.2-990306


# 1.7 02-Mar-1999 millert

ncurses-4.2-990301


# 1.6 24-Feb-1999 millert

updates from ncurses-4.2-990220


# 1.5 24-Jan-1999 millert

updates from ncurses-4.2-990123


# 1.4 18-Jan-1999 millert

updates from ncurses-4.2-990116


# 1.3 28-Dec-1998 millert

don't dump core when invoked with no args; pavel_roskin@geocities.com


# 1.2 03-Nov-1998 millert

updated from ncurses-4.2-981017


Revision tags: OPENBSD_2_4_BASE
# 1.1 24-Jul-1998 millert

tic/captoinfo/infotocap from ncurses-4.2-980718


# 1.34 28-Jun-2019 deraadt

When system calls indicate an error they return -1, not some arbitrary
value < 0. errno is only updated in this case. Change all (most?)
callers of syscalls to follow this better, and let's see if this strictness
helps us in the future.


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE
# 1.33 11-Nov-2015 deraadt

exit() after perror() for pledge failure. Perhaps this got introduced
as a test idiom, either when pledge was young or during the transition
to strings.... dunno


# 1.32 10-Oct-2015 deraadt

pledge "stdio rpath wpath cpath". as a curses program, I expected this
to maybe need "tty", but have not found a path which calls those kind
of curses functions.
ok doug


Revision tags: OPENBSD_5_5_BASE OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.31 28-Nov-2013 deraadt

unsigned char for ctype
ok krw okan


Revision tags: OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE
# 1.30 12-Jan-2010 nicm

Update to ncurses 5.7, with local changes reapplied.

This is around eight years worth of changes (previously we were around ncurses
5.2), too many to list - many bug fixes and also a few new functions.

A major bump for libcurses, libpanel, libform and libmenu.

ok deraadt


Revision tags: OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE
# 1.29 10-Oct-2006 cloder

fgets(3) returns NULL on error, not 0. No functional change, but it makes
the code easier to read.
OK deraadt


Revision tags: OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE
# 1.28 21-Oct-2003 deraadt

strdup check missing; noted by nimadeus@pandora.be


Revision tags: OPENBSD_3_4_BASE
# 1.27 02-Jul-2003 avsm

bump randomness of mktemp to from 6 to 10 X's, as recommended by mktemp(3)


# 1.26 14-Apr-2003 deraadt

spring cleaning; ok millert


Revision tags: OPENBSD_2_9_BASE OPENBSD_3_0_BASE OPENBSD_3_1_BASE OPENBSD_3_2_BASE OPENBSD_3_3_BASE
# 1.25 22-Feb-2001 millert

Update to ncurses-5.2-20010210:
o remove macro callPutChar() from tty_update.c, since this is no longer
needed (reported by Philippe Blain).
o add a null-pointer check in tic.c to handle the case when the input
file is really empty. Modify the next_char() function in comp_scan.c
to allow arbitrarily long lines, and incidentally supply a newline to
files that do not end in a newline. These changes improve tic's
recovery from attempts to read binary files, e.g., its output from
the terminfo database (reported by Bernhard Rosenkraenzer).
o revert change to c++/demo.cc from 20001209, which changed definition
of main() apparently to accommodate cygwin linker, but broke the demo
program.


# 1.24 29-Jan-2001 niklas

$OpenBSD$


# 1.23 22-Jan-2001 millert

Update to ncurses-5.2-20010114


Revision tags: OPENBSD_2_8_BASE
# 1.22 22-Oct-2000 millert

update to ncurses 5.2


# 1.21 08-Oct-2000 millert

update to ncurses-5.1-20001007


# 1.20 19-Jun-2000 millert

ncurses-5.0-20000617


Revision tags: OPENBSD_2_7_BASE
# 1.19 26-Mar-2000 millert

Update to ncurses-5.0-20000325


# 1.18 13-Mar-2000 millert

update to ncurses-5.0-20000311


# 1.17 10-Mar-2000 millert

Update to ncurses-5.0-20000304


# 1.16 16-Jan-2000 millert

Update to ncurses-5.0-20000115:
+ additional fixes for non-bce terminals (handling of delete_character)
to work when assume_default_colors() is not specified.
+ modify warning message from _nc_parse_entry() regarding extended
capability names to print only if tic/infocmp/toe have the -v flag
set, and not at all in ordinary user applications. Otherwise, this
warning would be shown for screen's extended capabilities in programs
that use the termcap interface.
+ modify use of _nc_tracing from programs such as tic so their debug
level is not in the same range as values set by trace() function.
+ small panel header cleanup (patch by Juergen Pfeifer).


# 1.15 12-Jan-2000 millert

usage() should go to stderr, not stdout.


# 1.14 12-Dec-1999 millert

Update to ncurses-19991211:
o treat as untranslatable to termcap those terminfo strings which
contain non-decimal formatting, e.g., hexadecimal or octal.
o correct commented-out capabilities that cannot be translated to
termcap, which did not check if a colon must be escaped.
o correct termcap translation for "%>" and "%+", which did not check
if a colon must be escaped, for instance.
o use save_string/save_char for _nc_captoinfo() to eliminate fixed
buffer (originally for _nc_infotocap() in 960301 -TD).
o correct expression used for terminfo equivalent of termcap %B,
adjust regent100 entry which uses this.
o some cleanup and commenting of ad hoc cases in _nc_infotocap().
o eliminate a fixed-buffer in tic, used for translating comments.
o add manpage for infotocap.


# 1.13 06-Dec-1999 millert

update to ncurses-5.0-19991204


# 1.12 28-Nov-1999 millert

update to ncurses-5.0-19991127


Revision tags: OPENBSD_2_6_BASE
# 1.11 27-Jun-1999 millert

ncurses-5.0-990626


Revision tags: OPENBSD_2_5_BASE
# 1.10 22-Mar-1999 millert

back out local change that should not have escaped


# 1.9 16-Mar-1999 millert

ncurses-4.2-990316


# 1.8 11-Mar-1999 millert

Add -G flag; ncurses-4.2-990306


# 1.7 02-Mar-1999 millert

ncurses-4.2-990301


# 1.6 24-Feb-1999 millert

updates from ncurses-4.2-990220


# 1.5 24-Jan-1999 millert

updates from ncurses-4.2-990123


# 1.4 18-Jan-1999 millert

updates from ncurses-4.2-990116


# 1.3 28-Dec-1998 millert

don't dump core when invoked with no args; pavel_roskin@geocities.com


# 1.2 03-Nov-1998 millert

updated from ncurses-4.2-981017


Revision tags: OPENBSD_2_4_BASE
# 1.1 24-Jul-1998 millert

tic/captoinfo/infotocap from ncurses-4.2-980718


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE
# 1.33 11-Nov-2015 deraadt

exit() after perror() for pledge failure. Perhaps this got introduced
as a test idiom, either when pledge was young or during the transition
to strings.... dunno


# 1.32 10-Oct-2015 deraadt

pledge "stdio rpath wpath cpath". as a curses program, I expected this
to maybe need "tty", but have not found a path which calls those kind
of curses functions.
ok doug


Revision tags: OPENBSD_5_5_BASE OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.31 28-Nov-2013 deraadt

unsigned char for ctype
ok krw okan


Revision tags: OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE
# 1.30 12-Jan-2010 nicm

Update to ncurses 5.7, with local changes reapplied.

This is around eight years worth of changes (previously we were around ncurses
5.2), too many to list - many bug fixes and also a few new functions.

A major bump for libcurses, libpanel, libform and libmenu.

ok deraadt


Revision tags: OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE
# 1.29 10-Oct-2006 cloder

fgets(3) returns NULL on error, not 0. No functional change, but it makes
the code easier to read.
OK deraadt


Revision tags: OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE
# 1.28 21-Oct-2003 deraadt

strdup check missing; noted by nimadeus@pandora.be


Revision tags: OPENBSD_3_4_BASE
# 1.27 02-Jul-2003 avsm

bump randomness of mktemp to from 6 to 10 X's, as recommended by mktemp(3)


# 1.26 14-Apr-2003 deraadt

spring cleaning; ok millert


Revision tags: OPENBSD_2_9_BASE OPENBSD_3_0_BASE OPENBSD_3_1_BASE OPENBSD_3_2_BASE OPENBSD_3_3_BASE
# 1.25 22-Feb-2001 millert

Update to ncurses-5.2-20010210:
o remove macro callPutChar() from tty_update.c, since this is no longer
needed (reported by Philippe Blain).
o add a null-pointer check in tic.c to handle the case when the input
file is really empty. Modify the next_char() function in comp_scan.c
to allow arbitrarily long lines, and incidentally supply a newline to
files that do not end in a newline. These changes improve tic's
recovery from attempts to read binary files, e.g., its output from
the terminfo database (reported by Bernhard Rosenkraenzer).
o revert change to c++/demo.cc from 20001209, which changed definition
of main() apparently to accommodate cygwin linker, but broke the demo
program.


# 1.24 29-Jan-2001 niklas

$OpenBSD$


# 1.23 22-Jan-2001 millert

Update to ncurses-5.2-20010114


Revision tags: OPENBSD_2_8_BASE
# 1.22 22-Oct-2000 millert

update to ncurses 5.2


# 1.21 08-Oct-2000 millert

update to ncurses-5.1-20001007


# 1.20 19-Jun-2000 millert

ncurses-5.0-20000617


Revision tags: OPENBSD_2_7_BASE
# 1.19 26-Mar-2000 millert

Update to ncurses-5.0-20000325


# 1.18 13-Mar-2000 millert

update to ncurses-5.0-20000311


# 1.17 10-Mar-2000 millert

Update to ncurses-5.0-20000304


# 1.16 16-Jan-2000 millert

Update to ncurses-5.0-20000115:
+ additional fixes for non-bce terminals (handling of delete_character)
to work when assume_default_colors() is not specified.
+ modify warning message from _nc_parse_entry() regarding extended
capability names to print only if tic/infocmp/toe have the -v flag
set, and not at all in ordinary user applications. Otherwise, this
warning would be shown for screen's extended capabilities in programs
that use the termcap interface.
+ modify use of _nc_tracing from programs such as tic so their debug
level is not in the same range as values set by trace() function.
+ small panel header cleanup (patch by Juergen Pfeifer).


# 1.15 12-Jan-2000 millert

usage() should go to stderr, not stdout.


# 1.14 12-Dec-1999 millert

Update to ncurses-19991211:
o treat as untranslatable to termcap those terminfo strings which
contain non-decimal formatting, e.g., hexadecimal or octal.
o correct commented-out capabilities that cannot be translated to
termcap, which did not check if a colon must be escaped.
o correct termcap translation for "%>" and "%+", which did not check
if a colon must be escaped, for instance.
o use save_string/save_char for _nc_captoinfo() to eliminate fixed
buffer (originally for _nc_infotocap() in 960301 -TD).
o correct expression used for terminfo equivalent of termcap %B,
adjust regent100 entry which uses this.
o some cleanup and commenting of ad hoc cases in _nc_infotocap().
o eliminate a fixed-buffer in tic, used for translating comments.
o add manpage for infotocap.


# 1.13 06-Dec-1999 millert

update to ncurses-5.0-19991204


# 1.12 28-Nov-1999 millert

update to ncurses-5.0-19991127


Revision tags: OPENBSD_2_6_BASE
# 1.11 27-Jun-1999 millert

ncurses-5.0-990626


Revision tags: OPENBSD_2_5_BASE
# 1.10 22-Mar-1999 millert

back out local change that should not have escaped


# 1.9 16-Mar-1999 millert

ncurses-4.2-990316


# 1.8 11-Mar-1999 millert

Add -G flag; ncurses-4.2-990306


# 1.7 02-Mar-1999 millert

ncurses-4.2-990301


# 1.6 24-Feb-1999 millert

updates from ncurses-4.2-990220


# 1.5 24-Jan-1999 millert

updates from ncurses-4.2-990123


# 1.4 18-Jan-1999 millert

updates from ncurses-4.2-990116


# 1.3 28-Dec-1998 millert

don't dump core when invoked with no args; pavel_roskin@geocities.com


# 1.2 03-Nov-1998 millert

updated from ncurses-4.2-981017


Revision tags: OPENBSD_2_4_BASE
# 1.1 24-Jul-1998 millert

tic/captoinfo/infotocap from ncurses-4.2-980718