summaryrefslogtreecommitdiff
path: root/lib/libterminfo/termcap.c
AgeCommit message (Collapse)Author
2023-01-31fix few typos in comments.andvar
2020-04-05Conditionalize a few more functions (hopefully fixing the build)martin
2020-03-27Introduce a bunch of inline functions and utilities to avoid code duplication.christos
2017-05-04Clean up some compile warnings.roy
2017-05-01Whitespace police.roy
2017-01-11Fix some off by one issues with arraycount ..thanks coypu.roy
2016-04-01- if we are freeing cur_term, set it to NULL.christos
- preserve and free "last" properly. $ cat foo.c #include <stdio.h> #include <termcap.h> int main(void) { tgetent(NULL, "dumb"); tgetent(NULL, "network"); tgetflag("so"); return 0; } $ cc foo.c -lterminfo $ MALLOC_OPTIONS=J ./a.out Boom. XXX: pullup-7
2015-11-25PR/50092: Rin Okuyama: Fix memory leak.christos
2011-11-13make use we don't touch memory past the end of the buffer. Pointed outchristos
by tnozaki.
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-09-16PR/45370: Takehiko NOZAKI: termcap emulation tget{flag,num,str} shouldchristos
work with non-NUL terminated strings.
2011-03-18Simplify some conversion by usig pre formatted strings and a functionroy
to print a parameter.
2011-03-11revert OOPS change now that most of the reasons for tgoto to return NULLchristos
have been eliminated.
2011-03-10Add support for translating the following termcap commands into terminfo:roy
%B %D %r %2 %3 %d %+ %> %. Fixes PR bin/44692.
2011-03-07Restore historical behavior of tgoto() to return "OOPS" on failure. This ischristos
best for now because there are too many programs that don't check the return value of it. Of course cursor motion commands from $TERMCAP have 0 chance of working now, since their % escapes are not translated to terminfo. In the window case %+ expects one param from the stack in the termcap case and two in the terminfo so we barf. We need proper captoinfo handling for the % escapes, like the one in ncurses. Hi Roy :-)
2010-10-12PR/43961: YAMAMOTO Takashi: uninitialized variable in termcap.cchristos
Remove dead code.
2010-09-22Our API just uses typedefs, so don't use the struct symbol which will avoidroy
any potential conflicts with userland.
2010-07-04area is now usedroy
2010-03-04Convert padding for unknown capabilities as well.roy
2010-03-04Convert padding and give terminfo some default assumptions about termcap.roy
2010-03-02Use _ti_get_token instead of strsep when parsing termcap entries.roy
This allows us to handle \E\ as a valid sequence.
2010-03-01Escape , when converting to terminfo.roy
2010-02-26Implement captoinfo so that we can convert $TERMCAP into $TERMINFO.roy
We don't currently map %> %B %D. That means no conversion for regent100, hz1500, act4, act5, mime terms.
2010-02-04Fix build issues on other hosts.roy
2010-02-03Import my terminfo implementation.roy
This uses the ncurses terminal definitions. OK: core@, jdc@