pub trait IsTerminal: Sealed {
// Required method
fn is_terminal(&self) -> bool;
}
Expand description
Trait to determine if a descriptor/handle refers to a terminal/tty.
Required Methods§
Sourcefn is_terminal(&self) -> bool
fn is_terminal(&self) -> bool
Returns true
if the descriptor/handle refers to a terminal/tty.