Skip to content

Commit

Permalink
example
Browse files Browse the repository at this point in the history
  • Loading branch information
softprops committed Jun 22, 2016
1 parent fdabaef commit 0751665
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions examples/atty.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,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));
}

0 comments on commit 0751665

Please sign in to comment.