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

View Source

Utility and helper functions for the terminal emulator. Extracted from the main emulator module for clarity and reuse.

Summary

Functions

get_config_struct(emulator)

@spec get_config_struct(Raxol.Terminal.Emulator.t()) :: any()

get_cursor_position(emulator)

@spec get_cursor_position(Raxol.Terminal.Emulator.t()) ::
  {non_neg_integer(), non_neg_integer()}

Gets the current cursor position. Returns {row, col} for consistency with ANSI standards.

get_cursor_position_struct(emulator)

get_cursor_struct(emulator)

@spec get_cursor_struct(Raxol.Terminal.Emulator.t()) :: Raxol.Terminal.Cursor.t()

Gets the cursor struct from the emulator.

get_cursor_struct_for_test(emulator)

get_cursor_visible_struct(emulator)

get_mode_manager_cursor_visible(emulator)

get_mode_manager_struct(emulator)

@spec get_mode_manager_struct(Raxol.Terminal.Emulator.t()) :: any()

get_mode_manager_struct_for_test(emulator)

get_screen_buffer(emulator)

Gets the active buffer from the emulator.

get_window_manager_struct(emulator)

@spec get_window_manager_struct(Raxol.Terminal.Emulator.t()) :: any()