isatty.c 169 B

12345678910
  1. /* See LICENSE of license details. */
  2. #include <unistd.h>
  3. int _isatty(int fd) {
  4. if (fd == STDOUT_FILENO || fd == STDERR_FILENO)
  5. return 1;
  6. return 0;
  7. }