Sign in
fuchsia
/
fuchsia
/
cafe43e483c36c5bfaa6e2decea566ed245832f8
/
.
/
third_party
/
rust_crates
/
vendor
/
crossterm
/
examples
/
is_tty.rs
blob: 108a134873484a28f0d20bf0a27193d68ecb90c2 [
file
] [
log
] [
blame
]
use
crossterm
::
tty
::
IsTty
;
use
std
::
io
::
stdin
;
pub
fn
main
()
{
if
stdin
().
is_tty
()
{
println
!(
"Is TTY"
);
}
else
{
println
!(
"Is not TTY"
);
}
}