denyhosts/clamav/libclamav_rust/.cargo/vendor/atty/examples/atty.rs

10 lines
201 B
Rust

extern crate atty;
use atty::{is, Stream};
fn main() {
println!("stdout? {}", is(Stream::Stdout));
println!("stderr? {}", is(Stream::Stderr));
println!("stdin? {}", is(Stream::Stdin));
}