Searched refs:isatty (Results 1 – 5 of 5) sorted by relevance
38 bool stdout_is_tty = isatty(STDOUT_FILENO) != 0; in ShouldUseColor()
69 if (isatty(0)) printf("%s", (c == kRed) ? "\e[31m" : "\e[32m"); in Print()70 printf("%s%s", lhs, isatty(0) ? "\e[0m" : ""); in Print()
148 if not valid and sys.stdout.isatty():
71 # perfetto log formatter calls isatty() on its stderr. Denial when running
44 int isatty(int fd) in isatty() function