fungus::sys
pub fn hastty() -> bool
Determine if the environment has an attached tty
use fungus::prelude::*; println!("{:?}", sys::hastty());