Sign in
android
/
platform
/
external
/
rust
/
crates
/
atty
/
5951f6757f2bc2ebffcd3434a3ba5c5d6153f636
/
.
/
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
));
}