Skip to main content

is_tty

Function is_tty 

Source
pub fn is_tty() -> bool
Expand description

Returns true if stdout is connected to a terminal (TTY).

Prefer crate::terminal::is_interactive for color decisions (also honors TERM=dumb). This helper is the raw TTY probe for platform code.