1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-18 15:30:21 +00:00
freebsd/sbin/sysinstall/rtermcap.c
Poul-Henning Kamp 7705c77bd6 The things you have to go through some times! Add a minimal program to
read a termcap entry, since tset is picky about filedescriptors...
1995-02-26 20:39:40 +00:00

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;
}