33 static const bool stdout_tty = isatty(STDOUT_FILENO);
34 static const bool stderr_tty = isatty(STDERR_FILENO);
35 if (&os == &std::cout)
37 if (&os == &std::cerr)
39 return (stdout_tty && stderr_tty);
47 return os <<
"\033[" <<
static_cast<std::size_t
>(c) <<
"m";
std::ostream & operator<<(std::ostream &os, Color c)
static bool isStreamATty(const std::ostream &os)
std::string toString(Color c)