Home | History | Annotate | Download | only in libterminfo
History log of /src/lib/libterminfo/term.h
RevisionDateAuthorComments
 1.26  11-May-2022  andvar fix various typos in comments.
 1.25  10-Dec-2021  andvar s/occured/occurred/ in comments, log messages and man pages.
 1.24  05-Jun-2020  roy terminfo(5): Numbre -> Number

Thanks to yukonbob
 1.23  13-Mar-2020  roy terminfo: promote numeric parameters from short to int

POSIX mandates implementations must support upto a short but may exceed it.
When NetBSD terminfo was implemented, no terminfo description used over
a short, but because ncurses has supported ints for some time, some now do.

Infact, such a terminfo description was imported where colour pairs for
screen-256color went up to 65536 which exposed a bug in the existing
implementation where it set to zero. Because the number might mean
something more than a range, we need to be able to store it accurately.

This requires a version bump because whilst the API hasn't changed thanks
to C int promotion, the ABI has. Also the underlying database structure
has changed as well - we now store the numeric paramter inside a uint32_t
field rather than a uint16_t one.
Whilst this change can still read the old style database, the old one
cannot read the new one and thus we now maintain the database as
terminfo2.cdb, leaving the old library and database alone so old programs
still work fine.

libcurses, libfrom, libmenu and libpanel have also been bumped to
accomoate this change.
 1.22  23-Mar-2017  roy branches: 1.22.12;
Allow terminfo users to update flag and numeric capabilities as they do
strings.
 1.21  23-Mar-2017  roy Revert botched commit.
 1.20  23-Mar-2017  roy term.h
 1.19  23-Mar-2017  roy Revert prior .... some ncurses application expect to be able to update
the terminal capabilities.
 1.18  20-Mar-2017  roy Ensure there is a terminal to return capabilities from.
 1.17  12-Jan-2017  roy branches: 1.17.2;
Correct terminfo variable pkey_norm to plab_norm.
 1.16  07-Jun-2013  roy branches: 1.16.10;
Whitespace
 1.15  15-Mar-2013  njoly Fix c&p error in string descriptions.
 1.14  25-Jan-2013  roy Provide a disabled implentation of tlparm and ti_tlparm for completeness.
This also improves the readability of _ti_tiparm.
 1.13  25-Jan-2013  roy Add descriptions for terminfo keys to term.h
These are extracted by genman and placed into the compiled terminfo.5
Fixes PR lib/47090
 1.12  29-May-2012  dholland branches: 1.12.2;
Add cdefs.h per PR 46492.
 1.11  22-Feb-2012  christos PR/46075: Asau: fix typo set_color_paid -> set_color_pair
 1.10  04-Oct-2011  roy branches: 1.10.2; 1.10.4;
Move longname(3) from curses to terminfo, pre-cursor to fix PR/43386.
 1.9  03-Oct-2011  roy Correctly use ti_ instead of t_ for our extensions as per the man page.
Replace vtparm with tiparm.
tiparm is also non standard, but has been proposed at least.
 1.8  02-Oct-2011  roy Add termname(3) as defined by POSIX.
 1.7  11-Apr-2011  roy POSIX says that term.h should define tgetstr and friends
Fixes PR lib/43941
 1.6  22-Sep-2010  roy Our API just uses typedefs, so don't use the struct symbol which will avoid
any potential conflicts with userland.
 1.5  26-Feb-2010  roy Implement captoinfo so that we can convert $TERMCAP into $TERMINFO.
We don't currently map %> %B %D.
That means no conversion for regent100, hz1500, act4, act5, mime terms.
 1.4  11-Feb-2010  roy Embed ansi, dumb, vt100, vt220 and wsvt25 compiled terminal descriptions
into libterminfo.
Constify some foo.
 1.3  05-Feb-2010  he More adaptation for ports with unsigned char as char.
 1.2  04-Feb-2010  roy Fix build issues on other hosts.
 1.1  03-Feb-2010  roy Import my terminfo implementation.
This uses the ncurses terminal definitions.

OK: core@, jdc@
 1.10.4.3  14-Mar-2013  riz Pull up following revision(s) (requested by roy in ticket #835):
lib/libterminfo/terminfo.3: revision 1.9
lib/libterminfo/term.h: revision 1.13
lib/libterminfo/term.h: revision 1.14
usr.bin/tput/Makefile: revision 1.11
lib/libterminfo/terminfo.3: revision 1.10
lib/libterminfo/genman: revision 1.5
lib/libterminfo/term_private.h: revision 1.11
usr.bin/tput/tput.c: revision 1.23
usr.bin/tput/tput.c: revision 1.24
usr.bin/tput/tput.c: revision 1.25
lib/libterminfo/tparm.c: revision 1.11
lib/libterminfo/Makefile.hash: revision 1.7
usr.bin/tput/tput.c: revision 1.26
lib/libterminfo/tparm.c: revision 1.12
lib/libterminfo/tparm.c: revision 1.13
lib/libterminfo/tparm.c: revision 1.14
lib/libterminfo/terminfo.5.in: revision 1.18
As tparm accepts longs we should treat them as long during expansion.
Also, fix the ~ and ! logic.
Move the strings vs long analysis to a private function, but allow
tput(1) to use it so we can work with string parameters to
capabilities.
Fix building our terminals with a non standard NETBSDSRCDIR, PR
lib/46793.
Thanks to Bernd Ernesti.
Remove debug accidently commited.
If char * > long then print a suitable error when passing a string
parameter.
For platforms where we cannot fit a char * into a long, return NULL
and set errno to ENOTSUPP.
Add descriptions for terminfo keys to term.h
These are extracted by genman and placed into the compiled terminfo.5
Fixes PR lib/47090
Provide a disabled implentation of tlparm and ti_tlparm for
completeness.
This also improves the readability of _ti_tiparm.
Use putp(3) to output our strings.
Fixes PR lib/47532
 1.10.4.2  11-Jun-2012  riz Pull up following revision(s) (requested by dholland in ticket #292):
lib/libterminfo/term.h: revision 1.12
Add cdefs.h per PR 46492.
 1.10.4.1  24-Feb-2012  riz Pull up following revision(s) (requested by asau in ticket #42):
lib/libterminfo/term.h: revision 1.11
PR/46075: Asau: fix typo set_color_paid -> set_color_pair
 1.10.2.3  22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.10.2.2  30-Oct-2012  yamt sync with head
 1.10.2.1  17-Apr-2012  yamt sync with head
 1.12.2.2  23-Jun-2013  tls resync from head
 1.12.2.1  25-Feb-2013  tls resync with head
 1.16.10.2  26-Apr-2017  pgoyette Sync with HEAD
 1.16.10.1  20-Mar-2017  pgoyette Sync with HEAD
 1.17.2.1  21-Apr-2017  bouyer Sync with HEAD
 1.22.12.1  08-Apr-2020  martin Merge changes from current as of 20200406

RSS XML Feed