Struct linefeed::memory::MemoryWriteGuard
[−]
[src]
pub struct MemoryWriteGuard<'a>(_);
Holds the lock on write operations of a MemoryTerminal
.
Trait Implementations
impl<'a> TerminalWriter<MemoryTerminal> for MemoryWriteGuard<'a>
[src]
fn size(&self) -> Result<Size>
[src]
Returns the size of the terminal window
fn clear_screen(&mut self) -> Result<()>
[src]
Presents a clear terminal screen, with cursor at first row, first column. Read more
fn clear_to_screen_end(&mut self) -> Result<()>
[src]
Clears characters on the line occupied by the cursor, beginning with the cursor and ending at the end of the line. Also clears all characters on all lines after the cursor. Read more
fn move_up(&mut self, n: usize) -> Result<()>
[src]
Moves the cursor up n
cells; n
may be zero.
fn move_down(&mut self, n: usize) -> Result<()>
[src]
Moves the cursor down n
cells; n
may be zero.
fn move_left(&mut self, n: usize) -> Result<()>
[src]
Moves the cursor left n
cells; n
may be zero.
fn move_right(&mut self, n: usize) -> Result<()>
[src]
Moves the cursor right n
cells; n
may be zero.
fn move_to_first_column(&mut self) -> Result<()>
[src]
Moves the cursor to the first column of the current line
fn set_cursor_mode(&mut self, mode: CursorMode) -> Result<()>
[src]
Set the current cursor mode
fn write(&mut self, s: &str) -> Result<()>
[src]
Writes output to the terminal. Read more
fn flush(&mut self) -> Result<()>
[src]
Flushes any currently buffered output data. Read more