Trait terminal_io::DuplexTerminal
source · pub trait DuplexTerminal: ReadTerminal + WriteTerminal + Duplex {
fn is_terminal(&self) -> bool { ... }
}
Expand description
An extension trait for input/output streams connected to terminals.
Provided Methods
sourcefn is_terminal(&self) -> bool
fn is_terminal(&self) -> bool
Test whether both the input stream and output streams are connected to terminals.
Also known as isatty
.