1 2 3 4 5
use std::io::IsTerminal; pub fn is_interactive() -> bool { std::io::stdin().is_terminal() }