pub enum Direction {
Up,
Down,
Forward,
Backward,
NextLine,
PreviousLine,
}
Expand description
A struct representing the cursor directions.
To use with the function move_cursor.
Variants§
Up
§CUU - Cursor up
CUU causes the active presentation position to be moved upwards in the presentation component by n line positions if the character path is horizontal, or by n character positions if the character path is vertical.
Down
§CUD - Cursor down
CUD causes the active presentation position to be moved downwards in the presentation component by n line positions if the character path is horizontal, or by n character positions if the character path is vertical.
Forward
§CUF - Cursor forward
CUF causes the active presentation position to be moved rightwards in the presentation component by n character positions if the character path is horizontal, or by n line positions if the character path is vertical.
Backward
§CUB - Cursor backward
CUB causes the active presentation position to be moved leftwards in the presentation component by n character positions if the character path is horizontal, or by n line positions if the character path is vertical.
NextLine
§CNL - Cursor next line
CNL causes the active presentation position to be moved to the first character position of the n-th following line in the presentation component.
PreviousLine
§CPL - Cursor preceding line
CPL causes the active presentation position to be moved to the first character position of the n-th preceding line in the presentation component.