fix queue pattern (from chris@maryland)
[unix-history] / usr / src / usr.bin / window / tttermcap.c
CommitLineData
359d1214 1#ifndef lint
7edc52ec 2static char sccsid[] = "@(#)tttermcap.c 3.4 %G%";
359d1214
EW
3#endif
4
359d1214
EW
5#include "tt.h"
6
7char *tgetstr();
8
b1189050 9tttputc(c)
359d1214 10{
b1189050 11 ttputc(c);
359d1214
EW
12}
13
b1189050 14ttxputc(c)
359d1214
EW
15{
16 *tt_strp++ = c;
17}
18
19char *
b1189050 20ttxgetstr(str)
359d1214
EW
21char *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}