Skip to main content

is_interactive

Function is_interactive 

Source
pub fn is_interactive() -> bool
Expand description

Returns true if the process is running in an interactive terminal (TTY).

Uses std::io::IsTerminal (stabilized in Rust 1.70) for detection cross-platform without external dependencies.