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