isatty
extern int isatty(int fd);
colorize = colorize && isatty(STDOUT_FILENO);
bool highlight = info.thread == child && isatty(STDOUT_FILENO);
bool isTerminal = isatty(STDIN_FILENO) != 0;
if (isatty(STDOUT_FILENO)) {
if ((c == 0) && MODE_LOCAL_CHARS(globalmode) && isatty(tin)) {
fShowProgress = isatty(STDOUT_FILENO);
if (isatty(fd) == 1 && ioctl(fd, TIOCGWINSZ, &windowSize) == 0)
return (isatty(STDIN_FILENO) ? 0 : 1);
!isatty(1) && isatty(2))
!isatty(1) && isatty(2))
if (G.M_flag && !isatty(1)) /* stdout redirected: "more" func. useless */
if (G.M_flag && !isatty(1)) /* stdout redirected: "more" func useless */
isatty(fd)
int res = isatty (fd);
if (!S_ISCHR(fdStat.st_mode) || !isatty(fd))