projects
/
unix-history
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
add log device ; unused reset routines are nulldev
[unix-history]
/
usr
/
src
/
usr.bin
/
window
/
tttermcap.c
#ifndef lint
static char
sccsid
[] =
"@(#)tttermcap.c 3.4 %G%"
;
#endif
#include
"tt.h"
char
*
tgetstr
();
tttputc
(
c
)
{
ttputc
(
c
);
}
ttxputc
(
c
)
{
*
tt_strp
++ =
c
;
}
char
*
ttxgetstr
(
str
)
char
*
str
;
{
char
buf
[
100
];
char
*
bufp
=
buf
;
str
=
tgetstr
(
str
, &
bufp
);
if
(
str
==
0
)
return
0
;
str
=
tt_strp
;
tputs
(
buf
,
1
,
ttxputc
);
ttxputc
(
0
);
return
str
;
}