Skip to main content

is_tty

Function is_tty 

Source
pub fn is_tty() -> bool
Expand description

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.