Struct termfest::ScreenLock
[−]
[src]
pub struct ScreenLock<'a> { /* fields omitted */ }
ScreenLock
is a locked screen buffer, created by Termfest::lock_screen
.
When it is dropped, the buffered state will be flushed to the terminal.
All rendering manipulation is implemented in ScreenLock
.
Methods
impl<'a> ScreenLock<'a>
[src]
fn flush(&mut self) -> Result<()>
[src]
flushes the internal buffer states to the terminal.
Even if this function is not called, the buffer will be flushed when self
is dropped.
fn clear(&mut self)
[src]
clear the internal buffer states. If clear and flush is called, the terminal will be cleared (nothing will be rendered).
fn move_cursor(&mut self, x: usize, y: usize)
[src]
fn hide_cursor(&mut self)
[src]
fn show_cursor(&mut self)
[src]
fn print(&mut self, x: usize, y: usize, s: &str, attr: Attribute)
[src]
print string with the given attribute.
It is equal to put_cell
calls with each character.
fn put_cell(&mut self, x: usize, y: usize, cell: Cell)
[src]
fn size(&self) -> (usize, usize)
[src]
returns the width and height of the terminal.