[−][src]Trait tui::backend::Backend
Required methods
fn draw<'a, I>(&mut self, content: I) -> Result<(), Error> where
I: Iterator<Item = (u16, u16, &'a Cell)>,
I: Iterator<Item = (u16, u16, &'a Cell)>,
fn hide_cursor(&mut self) -> Result<(), Error>
fn show_cursor(&mut self) -> Result<(), Error>
fn get_cursor(&mut self) -> Result<(u16, u16), Error>
fn set_cursor(&mut self, x: u16, y: u16) -> Result<(), Error>
fn clear(&mut self) -> Result<(), Error>
fn size(&self) -> Result<Rect, Error>
fn flush(&mut self) -> Result<(), Error>
Implementors
impl Backend for TestBackend
[src]
fn draw<'a, I>(&mut self, content: I) -> Result<(), Error> where
I: Iterator<Item = (u16, u16, &'a Cell)>,
[src]
I: Iterator<Item = (u16, u16, &'a Cell)>,
fn hide_cursor(&mut self) -> Result<(), Error>
[src]
fn show_cursor(&mut self) -> Result<(), Error>
[src]
fn get_cursor(&mut self) -> Result<(u16, u16), Error>
[src]
fn set_cursor(&mut self, x: u16, y: u16) -> Result<(), Error>
[src]
fn clear(&mut self) -> Result<(), Error>
[src]
fn size(&self) -> Result<Rect, Error>
[src]
fn flush(&mut self) -> Result<(), Error>
[src]
impl<W> Backend for TermionBackend<W> where
W: Write,
[src]
W: Write,
fn clear(&mut self) -> Result<()>
[src]
Clears the entire screen and move the cursor to the top left of the screen
fn hide_cursor(&mut self) -> Result<()>
[src]
Hides cursor
fn show_cursor(&mut self) -> Result<()>
[src]
Shows cursor
fn get_cursor(&mut self) -> Result<(u16, u16)>
[src]
Gets cursor position (0-based index)
fn set_cursor(&mut self, x: u16, y: u16) -> Result<()>
[src]
Sets cursor position (0-based index)
fn draw<'a, I>(&mut self, content: I) -> Result<()> where
I: Iterator<Item = (u16, u16, &'a Cell)>,
[src]
I: Iterator<Item = (u16, u16, &'a Cell)>,
fn size(&self) -> Result<Rect>
[src]
Return the size of the terminal