ttwrite added
[unix-history] / usr / src / usr.bin / window / tttermcap.c
... / ...
CommitLineData
1#ifndef lint
2static char sccsid[] = "@(#)tttermcap.c 3.5 %G%";
3#endif
4
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
11#include "tt.h"
12
13char *tgetstr();
14
15tttputc(c)
16{
17 ttputc(c);
18}
19
20ttxputc(c)
21{
22 *tt_strp++ = c;
23}
24
25char *
26ttxgetstr(str)
27char *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;
36 tputs(buf, 1, ttxputc);
37 ttxputc(0);
38 return str;
39}