History log of /netbsd-src/lib/libterminfo/term.c (Results 1 – 25 of 34)
Revision Date Author Comments
# b6924e8a 05-Apr-2020 martin <martin@NetBSD.org>

Conditionalize a few more functions (hopefully fixing the build)


# 9e387da6 05-Apr-2020 roy <roy@NetBSD.org>

terminfo: Add guards to optionally build parts of libterminfo

Reading from a database is now optional.
Compiling terminfo descriptions (including from $TERMINFO) is now optional.
Compat support is n

terminfo: Add guards to optionally build parts of libterminfo

Reading from a database is now optional.
Compiling terminfo descriptions (including from $TERMINFO) is now optional.
Compat support is now optional.

This removes 17k on amd64 from the binary size, which allows it to be used
again on space constrained ramdisks.

show more ...


# 1d30fdae 27-Mar-2020 christos <christos@NetBSD.org>

Introduce a bunch of inline functions and utilities to avoid code duplication.


# 3958d16a 27-Mar-2020 christos <christos@NetBSD.org>

As described in tech-userlevel:
- Modify the writing code to only write entries in the new
format for the terminal descriptions that require it.
- Store new format entries as <name>@v3
- Store old

As described in tech-userlevel:
- Modify the writing code to only write entries in the new
format for the terminal descriptions that require it.
- Store new format entries as <name>@v3
- Store old format entries with clamped values as <name> for
backwards compatibility
- Lookup first <name>@v3 and then <name> if that is not found.
- Don't create terminfo2 anymore; old programs keep working with
clamped entries, and new programs be able to use the wide
fields with using the original db file.

show more ...


# aadfdb11 13-Mar-2020 roy <roy@NetBSD.org>

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

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.

show more ...


# 7b8fbc2d 08-Oct-2018 roy <roy@NetBSD.org>

terminfo: if $TERMINFO.cdb doesn't exist, try $TERMINFO

This allows this command sequence to work:
tic -o /tmp/foo foo
TERMINFO=/tmp/foo TERM=foo infocmp


# 2e0a9a1d 16-May-2017 roy <roy@NetBSD.org>

Improve the scope of some variables.


# 8e374e1b 16-May-2017 roy <roy@NetBSD.org>

Remove ticcmp and extend _ti_checkname so it can be used instead.


# fc79bac8 16-May-2017 roy <roy@NetBSD.org>

Fix prior for multiple terminfo aliases.


# 2b9f5c3f 16-May-2017 roy <roy@NetBSD.org>

Instead of poking in the binary blob to work out if this is our terminal,
assume it is and load it.
Once loaded then check it's really for us.
This allows us to work out if the indexed alias entry is

Instead of poking in the binary blob to work out if this is our terminal,
assume it is and load it.
Once loaded then check it's really for us.
This allows us to work out if the indexed alias entry is correct we
this was not checked previously.

show more ...


# 2678fcfd 16-May-2017 roy <roy@NetBSD.org>

Don't bother allocating space for the database name, just print
directly to the static buffer storage.


# 3edb4adc 16-May-2017 roy <roy@NetBSD.org>

Move pathbuf into the function where it's actually used.


# 04f58b48 04-May-2017 roy <roy@NetBSD.org>

Clean up some compile warnings.


# 5b2b9b53 20-Apr-2017 roy <roy@NetBSD.org>

Whitespace, fit in 80 and extra braces for readability.
No functional change.


# ee97ae6a 24-Nov-2016 christos <christos@NetBSD.org>

off-by-one in memcpy. Found by ASAN (Carsten Kunze)
XXX: pullup 7.


# f5cb16e7 26-Nov-2015 christos <christos@NetBSD.org>

Always copy the area buffer, even when the length was the same
(from Rin Okuyama)


# f464a786 25-Nov-2015 christos <christos@NetBSD.org>

From PR/50092:
- handle calling _ti_readterm with an existing initialized terminal
- simplify free code
Also:
- fix an inconsistency in userdefs count computation


# 1535311f 07-Jun-2013 roy <roy@NetBSD.org>

Whitespace


# 2f2f99b4 06-Jun-2012 joerg <joerg@NetBSD.org>

Relax consistency to make it possible to match valid entries.


# fc67b0cd 03-Jun-2012 joerg <joerg@NetBSD.org>

Switch terminfo(3) to cdb(5).


# 5fafac09 01-Jun-2012 joerg <joerg@NetBSD.org>

Use memcmp in place of strncmp, since length is known to no longer than
either of the arguments.


# 91ab69b0 03-Oct-2011 roy <roy@NetBSD.org>

Remove _ti_freeterm as consumers should just use del_curterm.


# ed684e08 11-Apr-2011 roy <roy@NetBSD.org>

Clean up some compile warnings


# 007ba6f7 26-Feb-2010 roy <roy@NetBSD.org>

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.


# fde317d2 22-Feb-2010 roy <roy@NetBSD.org>

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

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.

show more ...


12