Lines Matching defs:termcap
2 * ed.screen.c: Editor/termcap-curses interface
513 * Print the termcap string out with variable substitution
1006 /* PWP 6-27-88 -- if the tty driver thinks that we can tab, we ask termcap */
1374 /* what termcap says we should use */
1419 * If we are on a pad, we pretend that we are dumb. Otherwise the termcap
1564 UpdateVal(const Char *tag, int value, Char *termcap, Char *backup)
1567 if ((ptr = Strstr(termcap, tag)) == NULL) {
1568 (void)Strcpy(backup, termcap);
1571 size_t len = (ptr - termcap) + Strlen(tag);
1572 (void)Strncpy(backup, termcap, len);
1599 * We reset termcap with tset, and not $TERMCAP has the right
1624 /* Leave 64 characters slop in case we enlarge the termcap string */
1625 Char termcap[TC_BUFSIZE+64], backup[TC_BUFSIZE+64], *ptr;
1629 (void) Strncpy(termcap, ptr, TC_BUFSIZE);
1630 termcap[TC_BUFSIZE-1] = '\0';
1632 changed = UpdateVal(STRco, Val(T_co), termcap, backup);
1633 changed |= UpdateVal(STRli, Val(T_li), termcap, backup);
1637 * Chop the termcap string at TC_BUFSIZE-1 characters to avoid
1638 * core-dumps in the termcap routines
1640 termcap[TC_BUFSIZE - 1] = '\0';
1641 tsetenv(STRTERMCAP, termcap);