pub trait ConsoleWrite: Write {
// Required methods
fn set_raw_mode(&mut self, mode: bool) -> Result<bool>;
fn is_raw_mode(&self) -> bool;
}
Expand description
Console output trait.
Required Methods§
Sourcefn set_raw_mode(&mut self, mode: bool) -> Result<bool>
fn set_raw_mode(&mut self, mode: bool) -> Result<bool>
Switch the raw mode, true enters raw mode and false exits raw mode.
This call needs to also lock the conin (conout will have been locked already). If it can not lock conin it will return an error of kind WouldBlock. On success returns the previos raw mode value (true if was in raw mode before call).
Sourcefn is_raw_mode(&self) -> bool
fn is_raw_mode(&self) -> bool
True if in raw mode.