pub trait ReadTerminal: Read + Terminal {
    // Required methods
    fn is_line_by_line(&self) -> bool;
    fn is_input_terminal(&self) -> bool;
}
Expand description

An extension trait for input streams connected to terminals.

Required Methods§

source

fn is_line_by_line(&self) -> bool

Test whether the input is being sent a line at a time.

source

fn is_input_terminal(&self) -> bool

Test whether the input is connected to a terminal.

Also known as isatty.

Implementors§