[][src]Trait coreutils_core::os::tty::IsTTY

pub trait IsTTY: AsRawFd {
    fn is_tty(&self) -> bool;
}

Convenience trait to use is_tty function as method

Required methods

fn is_tty(&self) -> bool

Check if caller is a TTY.

Example

let istty = io::stdin().is_tty();
Loading content...

Implementors

impl<T: AsRawFd> IsTTY for T[src]

Loading content...