Commit | Line | Data |
---|---|---|
359d1214 EW |
1 | #ifndef lint |
2 | static char *sccsid = "@(#)tttermcap.c 3.1 83/08/17"; | |
3 | #endif | |
4 | ||
5 | #include "ww.h" | |
6 | #include "tt.h" | |
7 | ||
8 | char *tgetstr(); | |
9 | ||
10 | tt_pc(c) | |
11 | { | |
12 | putchar(c); | |
13 | } | |
14 | ||
15 | tt_sc(c) | |
16 | { | |
17 | *tt_strp++ = c; | |
18 | } | |
19 | ||
20 | char * | |
21 | tt_xgetstr(str) | |
22 | char *str; | |
23 | { | |
24 | char buf[100]; | |
25 | char *bufp = buf; | |
26 | ||
27 | str = tgetstr(str, &bufp); | |
28 | if (str == 0) | |
29 | return 0; | |
30 | str = tt_strp; | |
31 | tputs(buf, 1, tt_sc); | |
32 | tt_sc(0); | |
33 | return str; | |
34 | } |