Struct mentat_cli::input::InputReader
[−]
[src]
pub struct InputReader { /* fields omitted */ }
Reads input from stdin
Methods
impl InputReader
[src]
impl InputReader
pub fn new(interface: Option<Interface<DefaultTerminal>>) -> InputReader
[src]
pub fn new(interface: Option<Interface<DefaultTerminal>>) -> InputReader
Constructs a new InputReader
reading from stdin
.
pub fn is_tty(&self) -> bool
[src]
pub fn is_tty(&self) -> bool
Returns whether the InputReader
is reading from a TTY.
pub fn read_input(&mut self) -> Result<InputResult, Error>
[src]
pub fn read_input(&mut self) -> Result<InputResult, Error>
Reads a single command, item, or statement from stdin
.
Returns More
if further input is required for a complete result.
In this case, the input received so far is buffered internally.
pub fn save_history(&self)
[src]
pub fn save_history(&self)
Trait Implementations
Auto Trait Implementations
impl Send for InputReader
impl Send for InputReader
impl Sync for InputReader
impl Sync for InputReader