is_tty

Function is_tty 

Source
pub fn is_tty() -> bool
Expand description

Check if stdout is a TTY (terminal)

ยงExamples

use ipfrs_cli::output::is_tty;

// In tests, this typically returns false
let tty = is_tty();
assert!(tty == true || tty == false); // Platform dependent