pub trait DuplexTerminal: ReadTerminal + WriteTerminal + Duplex {
    // Provided method
    fn is_terminal(&self) -> bool { ... }
}
Expand description

An extension trait for input/output streams connected to terminals.

Provided Methods§

source

fn is_terminal(&self) -> bool

Test whether both the input stream and output streams are connected to terminals.

Also known as isatty.

Implementors§