Commit Graph

23 Commits

Author SHA1 Message Date
roy
721f832e4d infocmp: don't crash when a terminfo description does not have an alias 2020-03-31 12:44:15 +00:00
roy
15455edc23 infocmp: strip versioning from aliases as well 2020-03-30 00:22:18 +00:00
roy
7d80d661b8 infocmp: Strip versioning from terminfo name 2020-03-29 19:10:08 +00:00
christos
6a8abee637 Deal with both .db and .cdb extensions... 2020-03-28 15:50:25 +00:00
roy
aadfdb111b 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.
2020-03-13 15:19:24 +00:00
roy
12d2934b32 _ti_database now includes the database extension so don't duplicate it. 2017-05-16 09:21:54 +00:00
christos
e5012983f9 CID 1356387: Wrong sizeof 2016-03-16 21:01:28 +00:00
christos
e37f4314dd PR/50932: David Binderman: use emalloc/erealloc/ecalloc 2016-03-09 20:02:33 +00:00
roy
48f2a68bff White space police. 2016-02-24 13:31:54 +00:00
riastradh
6cb10275d0 Merge riastradh-drm2 to HEAD. 2014-03-18 18:20:35 +00:00
roy
c019d40dad terminfo uses CDB instead of DB 2013-10-01 09:01:49 +00:00
dholland
99934b2d0c Passes WARNS=5, so don't set WARNS=4. 2013-08-11 06:48:46 +00:00
wiz
a5684d07dd Use Mt for email addresses. 2013-07-20 21:39:55 +00:00
wiz
e7d1c4c49a Fix spelling, mark up NULL. Closes PR 44381 by Ryo HAYASAKA. 2011-01-14 14:21:36 +00:00
joerg
75251fe0d1 Reorder sections to canonical order. 2010-05-14 17:02:01 +00:00
roy
fde317d2b1 libterminfo can now compile a single terminfo description which allows
$TERMINFO to be a terminfo description as well as a file reference.

This enables the user to modify the terminfo description on read-only
media.
2010-02-22 23:05:39 +00:00
roy
5176b19781 Report when using internal database. 2010-02-11 14:38:43 +00:00
roy
81c1c09bfc Report if using internal database or not. 2010-02-11 08:46:18 +00:00
roy
5f630912a5 Fix infocmp when both -a and -x are given as arguments. 2010-02-05 16:43:46 +00:00
roy
ae351fab5b Store the aliases against the entry, so that infocmp can reproduce them.
Handy for creating smaller terminfo databases.
2010-02-05 12:31:56 +00:00
roy
461cb40b76 Make our unsigned char ports happy. 2010-02-05 10:10:04 +00:00
wiz
91dad5b171 Use .Ex for EXIT STATUS. 2010-02-03 15:51:51 +00:00
roy
4ca00e00d8 Import my terminfo implementation.
This uses the ncurses terminal definitions.

OK: core@, jdc@
2010-02-03 15:16:32 +00:00