1 extern crate atty; 2 3 use atty::{is, Stream}; 4 main()5 fn main() { 6 println!("stdout? {}", is(Stream::Stdout)); 7 println!("stderr? {}", is(Stream::Stderr)); 8 println!("stdin? {}", is(Stream::Stdin)); 9 } 10