[][src]Trait terminal_io::ReadTerminal

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

An extension trait for input streams connected to terminals.

Required methods

fn is_line_by_line(&self) -> bool[src]

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

fn is_input_terminal(&self) -> bool[src]

Test whether the input is connected to a terminal.

Also known as isatty.

Loading content...

Implementors

impl<Inner: Read> ReadTerminal for NeverTerminalReader<Inner>[src]

impl<Inner: Read> ReadTerminal for TerminalReader<Inner>[src]

impl<Inner: Duplex + Read + Write> ReadTerminal for TerminalDuplexer<Inner>[src]

impl<Inner: Duplex + Read> ReadTerminal for NeverTerminalDuplexer<Inner>[src]

Loading content...