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

10 lines
201 B
Rust
Raw Normal View History

2023-01-14 18:28:39 +08:00
extern crate atty;
use atty::{is, Stream};
fn main() {
println!("stdout? {}", is(Stream::Stdout));
println!("stderr? {}", is(Stream::Stderr));
println!("stdin? {}", is(Stream::Stdin));
}