22bool is_a_tty(
const FILE* fd)
25 return static_cast<bool>(_isatty(_fileno(
const_cast<FILE*
>(fd))));
27 return ::isatty(::fileno(
const_cast<FILE*
>(fd)));
bool is_stdout_a_tty()
Check if stdout is a tty.
bool is_stderr_a_tty()
Check if stderr is a tty.
bool is_stdin_a_tty()
Check if stdin is a tty.