mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-05 23:09:49 +00:00
7705c77bd6
read a termcap entry, since tset is picky about filedescriptors...
15 lines
163 B
C
15 lines
163 B
C
#include <stdio.h>
|
|
#include <termcap.h>
|
|
|
|
int
|
|
main(int argc, char **argv)
|
|
{
|
|
char buf[4096];
|
|
int i;
|
|
|
|
i = tgetent(buf, argv[1]);
|
|
|
|
printf("%s",buf);
|
|
return 0;
|
|
}
|