Raxol.Terminal.Emulator.Helpers (Raxol v2.0.1)
View SourceUtility and helper functions for the terminal emulator. Extracted from the main emulator module for clarity and reuse.
Summary
Functions
Gets the current cursor position. Returns {row, col} for consistency with ANSI standards.
Gets the cursor struct from the emulator.
Gets the active buffer from the emulator.
Functions
@spec get_config_struct(Raxol.Terminal.Emulator.t()) :: any()
@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.
@spec get_cursor_struct(Raxol.Terminal.Emulator.t()) :: Raxol.Terminal.Cursor.t()
Gets the cursor struct from the emulator.
@spec get_mode_manager_struct(Raxol.Terminal.Emulator.t()) :: any()
@spec get_screen_buffer(Raxol.Terminal.Emulator.t()) :: Raxol.Terminal.ScreenBuffer.t()
Gets the active buffer from the emulator.
@spec get_window_manager_struct(Raxol.Terminal.Emulator.t()) :: any()