mirror of
https://github.com/autc04/Retro68.git
synced 2024-11-30 19:53:46 +00:00
12 lines
133 B
C
12 lines
133 B
C
#include <sys/termio.h>
|
|
|
|
int
|
|
isatty(fd)
|
|
int fd; {
|
|
struct termio buf;
|
|
|
|
if (ioctl (fd, TCGETA, &buf) == -1)
|
|
return 0;
|
|
return 1;
|
|
}
|