ref: ba4b0723d9e6d6ec72ca54016a932e72fbae46f7 dir: /libnpe/isatty.c/
#include <unistd.h> #include "_npe.h" int isatty(int fd) { char buf[64]; return fd2path(fd, buf, sizeof(buf)) == 0 && strcmp(buf, "/dev/cons") == 0; }