Raxol.Terminal.ANSI.Sequences.Cursor (Raxol v0.2.0)
View SourceANSI Cursor Sequence Handler.
Handles parsing and application of ANSI cursor control sequences, including movement, position saving/restoring, and visibility.
Summary
Functions
Move cursor to absolute position.
Move cursor backward by specified number of columns.
Move cursor down by specified number of rows.
Move cursor forward by specified number of columns.
Move cursor up by specified number of rows.
Restore previously saved cursor position.
Save current cursor position.
Set cursor visibility.
Functions
Move cursor to absolute position.
Parameters
emulator
- The terminal emulator staterow
- Row to move to (1-indexed)col
- Column to move to (1-indexed)
Returns
Updated emulator state
Move cursor backward by specified number of columns.
Parameters
emulator
- The terminal emulator staten
- Number of columns to move backward
Returns
Updated emulator state
Move cursor down by specified number of rows.
Parameters
emulator
- The terminal emulator staten
- Number of rows to move down
Returns
Updated emulator state
Move cursor forward by specified number of columns.
Parameters
emulator
- The terminal emulator staten
- Number of columns to move forward
Returns
Updated emulator state
Move cursor up by specified number of rows.
Parameters
emulator
- The terminal emulator staten
- Number of rows to move up
Returns
Updated emulator state
Restore previously saved cursor position.
Parameters
emulator
- The terminal emulator state
Returns
Updated emulator state with restored cursor position
Save current cursor position.
Parameters
emulator
- The terminal emulator state
Returns
Updated emulator state with saved cursor position
Set cursor visibility.
Parameters
emulator
- The terminal emulator statevisible
- Boolean indicating visibility
Returns
Updated emulator state