Commit | Line | Data |
---|---|---|
359d1214 | 1 | #ifndef lint |
7edc52ec | 2 | static char sccsid[] = "@(#)tttermcap.c 3.4 %G%"; |
359d1214 EW |
3 | #endif |
4 | ||
359d1214 EW |
5 | #include "tt.h" |
6 | ||
7 | char *tgetstr(); | |
8 | ||
b1189050 | 9 | tttputc(c) |
359d1214 | 10 | { |
b1189050 | 11 | ttputc(c); |
359d1214 EW |
12 | } |
13 | ||
b1189050 | 14 | ttxputc(c) |
359d1214 EW |
15 | { |
16 | *tt_strp++ = c; | |
17 | } | |
18 | ||
19 | char * | |
b1189050 | 20 | ttxgetstr(str) |
359d1214 EW |
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; | |
b1189050 EW |
30 | tputs(buf, 1, ttxputc); |
31 | ttxputc(0); | |
359d1214 EW |
32 | return str; |
33 | } |