Sign in
chromium
/
external
/
github.com
/
softprops
/
atty
/
e76536eb2779edf68ae7a0c8eef6586290570965
/
.
/
examples
/
atty.rs
blob: 3b3635e59cbd1d11fe3e6e415e883e2cdc7a7581 [
file
] [
log
] [
blame
]
extern
crate atty
;
use
atty
::{
is
,
Stream
};
fn
main
()
{
println
!(
"stdout? {}"
,
is
(
Stream
::
Stdout
));
println
!(
"stderr? {}"
,
is
(
Stream
::
Stderr
));
println
!(
"stdin? {}"
,
is
(
Stream
::
Stdin
));
}