pub fn is_tty<T: AsRawFd>(stream: &T) -> bool
Is this stream a TTY?
5fn main() { 6 if termion::is_tty(&fs::File::create("/dev/stdout").unwrap()) { 7 println!("This is a TTY!"); 8 } else { 9 println!("This is not a TTY :("); 10 } 11}