Commit | Line | Data |
---|---|---|
1 | #ifndef lint | |
2 | static char sccsid[] = "@(#)tttermcap.c 3.4 %G%"; | |
3 | #endif | |
4 | ||
5 | #include "tt.h" | |
6 | ||
7 | char *tgetstr(); | |
8 | ||
9 | tttputc(c) | |
10 | { | |
11 | ttputc(c); | |
12 | } | |
13 | ||
14 | ttxputc(c) | |
15 | { | |
16 | *tt_strp++ = c; | |
17 | } | |
18 | ||
19 | char * | |
20 | ttxgetstr(str) | |
21 | char *str; | |
22 | { | |
23 | char buf[100]; | |
24 | char *bufp = buf; | |
25 | ||
26 | str = tgetstr(str, &bufp); | |
27 | if (str == 0) | |
28 | return 0; | |
29 | str = tt_strp; | |
30 | tputs(buf, 1, ttxputc); | |
31 | ttxputc(0); | |
32 | return str; | |
33 | } |