Commit | Line | Data |
---|---|---|
359d1214 | 1 | #ifndef lint |
60de5df9 | 2 | static char sccsid[] = "@(#)tttermcap.c 3.5 %G%"; |
359d1214 EW |
3 | #endif |
4 | ||
60de5df9 EW |
5 | /* |
6 | * Copyright (c) 1983 Regents of the University of California, | |
7 | * All rights reserved. Redistribution permitted subject to | |
8 | * the terms of the Berkeley Software License Agreement. | |
9 | */ | |
10 | ||
359d1214 EW |
11 | #include "tt.h" |
12 | ||
13 | char *tgetstr(); | |
14 | ||
b1189050 | 15 | tttputc(c) |
359d1214 | 16 | { |
b1189050 | 17 | ttputc(c); |
359d1214 EW |
18 | } |
19 | ||
b1189050 | 20 | ttxputc(c) |
359d1214 EW |
21 | { |
22 | *tt_strp++ = c; | |
23 | } | |
24 | ||
25 | char * | |
b1189050 | 26 | ttxgetstr(str) |
359d1214 EW |
27 | char *str; |
28 | { | |
29 | char buf[100]; | |
30 | char *bufp = buf; | |
31 | ||
32 | str = tgetstr(str, &bufp); | |
33 | if (str == 0) | |
34 | return 0; | |
35 | str = tt_strp; | |
b1189050 EW |
36 | tputs(buf, 1, ttxputc); |
37 | ttxputc(0); | |
359d1214 EW |
38 | return str; |
39 | } |