pub trait IsTerminal {
    fn is_terminal(&self) -> bool;
}
Expand description

Extension for I/O handles which may or may not be terminals.

Required methods

Test whether this output stream is attached to a terminal.

This operation is also known as isatty.

Implementors

Implement IsTerminal for types that implement AsRawFd.