Commit Graph

14 Commits

Author SHA1 Message Date
roy 877982596a terminfo: test strlcpy result against space free, not string length
riastradh@ yep, looks good.
2020-05-30 16:03:58 +00:00
roy 04f58b4824 Clean up some compile warnings. 2017-05-04 09:42:23 +00:00
christos 8b22ec00d4 - if we are freeing cur_term, set it to NULL.
- 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
2016-04-01 19:59:08 +00:00
christos 7ddef8633d PR/50092: Fix memory leak. 2015-11-25 18:38:21 +00:00
joerg 2786173415 Use an empty string, not a null pointer for nullname. 2013-11-18 20:51:03 +00:00
roy 1535311f47 Whitespace 2013-06-07 13:16:18 +00:00
roy 62480e1c72 There is no standard way of getting a list of aliases for the
terminal. However, some applications such as telnet want to know this.
ncurses dumps the terminfo header into an undefined variable ttytype
and these applications then parse it to work out the aliases.
We should do the same for now, until a standard mechanism for getting
the information is available or the need for it goes away.
2011-10-05 10:46:08 +00:00
roy 64afaacce6 Move longname(3) from curses to terminfo, pre-cursor to fix PR/43386. 2011-10-04 11:01:13 +00:00
roy 91ab69b0df Remove _ti_freeterm as consumers should just use del_curterm. 2011-10-03 19:18:55 +00:00
roy fd2d10c6b0 Add termname(3) as defined by POSIX. 2011-10-02 19:24:25 +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 1aacca65aa Remove silly debug. 2010-02-11 09:34:12 +00:00
roy 90cead5eeb Embed ansi, dumb, vt100, vt220 and wsvt25 compiled terminal descriptions
into libterminfo.
Constify some foo.
2010-02-11 00:27:09 +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