Lines Matching defs:termcap
13 * Uses termcap to be as terminal-independent as possible.
72 #include <termcap.h>
254 * and needed by, the termcap library.
669 * Some glue to prevent calling termcap functions if tgetent() failed.
1085 * Get terminal capabilities via termcap.
1157 * Some termcap libraries assume termbuf is static
1165 * Make sure the termcap database is available.
1170 char *termcap;
1171 if ((sp = homefile("termcap.dat")) != NULL)
1173 termcap = (char *) ecalloc(strlen(sp)+9, sizeof(char));
1174 sprintf(termcap, "TERMCAP=%s", sp);
1176 putenv(termcap);
1205 * Assumes termcap variable "sg" is the printing width of:
1389 * Return the cost of displaying a termcap string.
1416 * Return the "best" of the two given termcap strings.