Raxol.Terminal.Emulator.CursorOperations (Raxol v2.0.1)

View Source

Cursor 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

emulator()

@type emulator() :: Raxol.Terminal.Emulator.t()

Functions

move_cursor(emulator, x, y)

@spec move_cursor(emulator(), non_neg_integer(), non_neg_integer()) :: emulator()

Moves the cursor to the specified position (alias for move_cursor_to).

move_cursor_back(emulator, count)

@spec move_cursor_back(emulator(), non_neg_integer()) :: emulator()

Moves the cursor back by the specified count.

move_cursor_down(emulator, count)

@spec move_cursor_down(emulator(), non_neg_integer()) :: emulator()

move_cursor_down(emulator, count, width, height)

Moves the cursor down by the specified count.

move_cursor_forward(emulator, count)

@spec move_cursor_forward(emulator(), non_neg_integer()) :: emulator()

Moves the cursor forward by the specified count.

move_cursor_left(emulator, count, width, height)

@spec move_cursor_left(
  emulator(),
  non_neg_integer(),
  non_neg_integer(),
  non_neg_integer()
) :: emulator()

Moves the cursor left by the specified count.

move_cursor_right(emulator, count, width, height)

@spec move_cursor_right(
  emulator(),
  non_neg_integer(),
  non_neg_integer(),
  non_neg_integer()
) :: emulator()

Moves the cursor right by the specified count.

move_cursor_to(emulator, arg)

@spec move_cursor_to(
  emulator(),
  {non_neg_integer(), non_neg_integer()}
) :: emulator()

Moves the cursor to the specified position (2-arity version).

move_cursor_to(emulator, x, y)

@spec move_cursor_to(emulator(), non_neg_integer(), non_neg_integer()) :: emulator()

Moves the cursor to the specified position.

move_cursor_to_column(emulator, column, width, height)

@spec move_cursor_to_column(
  emulator(),
  non_neg_integer(),
  non_neg_integer(),
  non_neg_integer()
) :: emulator()

Moves the cursor to the specified column.

move_cursor_to_line_start(emulator)

@spec move_cursor_to_line_start(emulator()) :: emulator()

Moves the cursor to the start of the current line.

move_cursor_up(emulator, count)

@spec move_cursor_up(emulator(), non_neg_integer()) :: emulator()

move_cursor_up(emulator, count, width, height)

@spec move_cursor_up(emulator(), non_neg_integer(), term(), term()) :: emulator()

Moves the cursor up by the specified count.