newlib-cygwin/newlib/libc/sys/sysvi386/isatty.c

12 lines
133 B
C
Raw Normal View History

2000-02-18 03:39:52 +08:00
#include <sys/termio.h>
int
isatty(fd)
int fd; {
struct termio buf;
if (ioctl (fd, TCGETA, &buf) == -1)
return 0;
return 1;
}