pub fn is_tty() -> bool
Check if stdout is a TTY (terminal).
Returns true if stdout is connected to a terminal, false if piped/redirected. This is used to determine whether to use colored output and fancy formatting.
true
false