summaryrefslogtreecommitdiff
path: root/lib/libterminfo/tparm.c
AgeCommit message (Collapse)Author
2021-08-27libterminfo: remove redundant lint annotationsrillig
Since 2021-02-28, lint does not warn about constant conditions if they involve sizeof. The fallthrough annotations have never been necessary for case labels that directly follow each other.
2020-03-27As described in tech-userlevel:christos
- 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.
2017-05-04Clean up some compile warnings.roy
2015-11-25We have the max length; use snprintf.christos
2013-06-07Whitespaceroy
2013-01-25Provide a disabled implentation of tlparm and ti_tlparm for completeness.roy
This also improves the readability of _ti_tiparm.
2013-01-25For platforms where we cannot fit a char * into a long, return NULLroy
and set errno to ENOTSUPP.
2013-01-24Move the strings vs long analysis to a private function, but allowroy
tput(1) to use it so we can work with string parameters to capabilities.
2013-01-24As tparm accepts longs we should treat them as long during expansion.roy
Also, fix the ~ and ! logic.
2013-01-23Fix %t logic and don't output any %; or %e parts.roy
Fixes PR lib/47490 thanks to Julien Oster
2012-11-30Fix off by one error.msaitoh
2012-06-02Ensure that we request a buffer big enough, although with the currentroy
terminfo specification this should never happen. Correctly return NULL when realloc(3) fails.
2011-10-03Fix tparm.roy
As we now go via tiparm, store nums as int to conserve memory.
2011-10-03Correctly use ti_ instead of t_ for our extensions as per the man page.roy
Replace vtparm with tiparm. tiparm is also non standard, but has been proposed at least.
2011-03-10Do our best to process invalid terminfo strings instead of justroy
returning NULL.
2011-03-10Fix two other off-by-one errors when processing %P and %g commands.roy
2011-03-10Fix an off-by-one error when processing embedded values.roy
2010-09-22Our API just uses typedefs, so don't use the struct symbol which will avoidroy
any potential conflicts with userland.
2010-02-03Import my terminfo implementation.roy
This uses the ncurses terminal definitions. OK: core@, jdc@