pub trait Terminal {
// Required methods
fn size(&self) -> (usize, usize);
fn read_key(&mut self) -> Result<Option<Key>>;
fn draw(&mut self, frame: &Frame) -> Result<()>;
fn color(&self) -> bool;
}Expand description
The terminal in raw mode. When dropped, it gives the terminal back as it was.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".