pub trait Screen {
type C: Cell;
// Required methods
fn cell(&self, row: u16, col: u16) -> Option<&Self::C>;
fn hide_cursor(&self) -> bool;
fn cursor_position(&self) -> (u16, u16);
}Expand description
A trait representing a pseudo-terminal screen.
Implementing this trait allows for backends other than vt100 to be used
with the PseudoTerminal widget.
Required Associated Types§
Required Methods§
sourcefn cell(&self, row: u16, col: u16) -> Option<&Self::C>
fn cell(&self, row: u16, col: u16) -> Option<&Self::C>
Returns the cell at the given location if it exists.
sourcefn hide_cursor(&self) -> bool
fn hide_cursor(&self) -> bool
Returns whether the terminal should be hidden
sourcefn cursor_position(&self) -> (u16, u16)
fn cursor_position(&self) -> (u16, u16)
Returns cursor position of screen.
The return value is expected to be (row, column)