Raxol.Terminal.Emulator.CursorOperations (Raxol v2.0.1)
View SourceCursor operation functions extracted from the main emulator module. Handles cursor movement, positioning, and blink operations.
Summary
Functions
Moves the cursor to the specified position (alias for move_cursor_to).
Moves the cursor back by the specified count.
Moves the cursor down by the specified count.
Moves the cursor forward by the specified count.
Moves the cursor left by the specified count.
Moves the cursor right by the specified count.
Moves the cursor to the specified position (2-arity version).
Moves the cursor to the specified position.
Moves the cursor to the specified column.
Moves the cursor to the start of the current line.
Moves the cursor up by the specified count.
Sets the blink rate for the cursor.
Types
@type emulator() :: Raxol.Terminal.Emulator.t()
Functions
@spec move_cursor(emulator(), non_neg_integer(), non_neg_integer()) :: emulator()
Moves the cursor to the specified position (alias for move_cursor_to).
@spec move_cursor_back(emulator(), non_neg_integer()) :: emulator()
Moves the cursor back by the specified count.
@spec move_cursor_down(emulator(), non_neg_integer()) :: emulator()
Moves the cursor down by the specified count.
@spec move_cursor_forward(emulator(), non_neg_integer()) :: emulator()
Moves the cursor forward by the specified count.
@spec move_cursor_left( emulator(), non_neg_integer(), non_neg_integer(), non_neg_integer() ) :: emulator()
Moves the cursor left by the specified count.
@spec move_cursor_right( emulator(), non_neg_integer(), non_neg_integer(), non_neg_integer() ) :: emulator()
Moves the cursor right by the specified count.
@spec move_cursor_to( emulator(), {non_neg_integer(), non_neg_integer()} ) :: emulator()
Moves the cursor to the specified position (2-arity version).
@spec move_cursor_to(emulator(), non_neg_integer(), non_neg_integer()) :: emulator()
Moves the cursor to the specified position.
@spec move_cursor_to_column( emulator(), non_neg_integer(), non_neg_integer(), non_neg_integer() ) :: emulator()
Moves the cursor to the specified column.
Moves the cursor to the start of the current line.
@spec move_cursor_up(emulator(), non_neg_integer()) :: emulator()
@spec move_cursor_up(emulator(), non_neg_integer(), term(), term()) :: emulator()
Moves the cursor up by the specified count.
@spec set_blink_rate(emulator(), non_neg_integer()) :: emulator()
Sets the blink rate for the cursor.