Function coded_chars::control::cursor::move_cursor
source · pub fn move_cursor(direction: Direction, n: usize) -> ControlSequenceExpand description
§Move cursor
Moves the cursor in a direction relative to its current position.
This function can perform the following cursor control functions :
- CUU - Cursor up with Direction::Up,
- CUD - Cursor down with Direction::Down,
- CUF - Cursor forward with Direction::Forward,
- CUB - Cursor backward with Direction::Backward,
- CNL - Cursor next line with Direction::NextLine,
- CPL - Cursor preceding line with Direction::PreviousLine,