Lines Matching defs:termcap
3 * ed.screen.c: Editor/termcap-curses interface
517 * Print the termcap string out with variable substitution
1010 /* PWP 6-27-88 -- if the tty driver thinks that we can tab, we ask termcap */
1378 /* what termcap says we should use */
1423 * If we are on a pad, we pretend that we are dumb. Otherwise the termcap
1440 xprintf(CGETS(7, 20, "%s: Cannot open /etc/termcap.\n"), progname);
1567 UpdateVal(const Char *tag, int value, Char *termcap, Char *backup)
1570 if ((ptr = Strstr(termcap, tag)) == NULL) {
1571 (void)Strcpy(backup, termcap);
1574 size_t len = (ptr - termcap) + Strlen(tag);
1575 (void)Strncpy(backup, termcap, len);
1601 * We reset termcap with tset, and not $TERMCAP has the right
1626 /* Leave 64 characters slop in case we enlarge the termcap string */
1627 Char termcap[TC_BUFSIZE+64], backup[TC_BUFSIZE+64], *ptr;
1631 (void) Strncpy(termcap, ptr, TC_BUFSIZE);
1632 termcap[TC_BUFSIZE-1] = '\0';
1634 UpdateVal(STRco, Val(T_co), termcap, backup);
1635 UpdateVal(STRli, Val(T_li), termcap, backup);
1638 * Chop the termcap string at TC_BUFSIZE-1 characters to avoid
1639 * core-dumps in the termcap routines
1641 termcap[TC_BUFSIZE - 1] = '\0';
1642 tsetenv(STRTERMCAP, termcap);