Trait IsTTY
coreutils_core::os::tty
pub trait IsTTY: AsRawFd { fn is_tty(&self) -> bool; }
Convenience trait to use is_tty function as method
is_tty
fn is_tty(&self) -> bool
Check if caller is a TTY.
let istty = io::stdin().is_tty();
impl<T: AsRawFd> IsTTY for T