Sign in
fuchsia
/
fuchsia
/
eb50e07bc90baedf041d7def6479a9b91f880d73
/
.
/
third_party
/
rust_crates
/
vendor
/
termion
/
examples
/
is_tty.rs
blob: 52d1bc1d2d76d877d0eb6a22934b195521855a30 [
file
] [
log
] [
blame
]
extern
crate termion
;
use
std
::
fs
;
fn
main
()
{
if
termion
::
is_tty
(&
fs
::
File
::
create
(
"/dev/stdout"
).
unwrap
())
{
println
!(
"This is a TTY!"
);
}
else
{
println
!(
"This is not a TTY :("
);
}
}