Skip to main content

is_interactive

Function is_interactive 

Source
pub fn is_interactive() -> bool
Expand description

True when both stdin and stdout are attached to a terminal. False in pipes, redirects, CI, and under the test harness — callers use this to decide whether prompting is safe.