[−][src]Trait termion::input::TermRead
Extension to Read
trait.
Required methods
ⓘImportant traits for Events<R>fn events(self) -> Events<Self> where
Self: Sized,
ⓘImportant traits for Events<R>
Self: Sized,
An iterator over input events.
ⓘImportant traits for Keys<R>fn keys(self) -> Keys<Self> where
Self: Sized,
ⓘImportant traits for Keys<R>
Self: Sized,
An iterator over key inputs.
fn read_line(&mut self) -> Result<Option<String>>
Read a line.
EOT and ETX will abort the prompt, returning None
. Newline or carriage return will
complete the input.
Provided methods
fn read_passwd<W: Write>(&mut self, writer: &mut W) -> Result<Option<String>>
Read a password.
EOT and ETX will abort the prompt, returning None
. Newline or carriage return will
complete the input.