Trait system_interface::io::IsTerminal [−][src]
pub trait IsTerminal {
fn is_terminal(&self) -> bool;
}
Expand description
Extension for I/O handles which may or may not be terminals.
Required methods
fn is_terminal(&self) -> bool
fn is_terminal(&self) -> bool
Test whether this output stream is attached to a terminal.
This operation is also known as isatty
.
Implementations on Foreign Types
Implement IsTerminal
for StdinLock
.
Implement IsTerminal
for StdoutLock
.
Implement IsTerminal
for StderrLock
.
Implement IsTerminal
for std::fs::File
.
Implement IsTerminal
for std::net::TcpStream
.