Core input handling functionality for the terminal emulator. Manages the main input buffer and cursor state.
Summary
Functions
Inserts text at the specified position in the buffer.
Creates a new input handler with default values.
Processes a raw input string for the terminal, parsing control sequences and printable characters. This function drives the terminal command parser.
Types
@type t() :: %Raxol.Terminal.Input.CoreHandler{ buffer: String.t(), cursor_position: non_neg_integer(), mode_manager: Raxol.Terminal.ModeManager.t(), tab_completion: map(), tab_completion_index: non_neg_integer(), tab_completion_matches: [String.t()] }
Functions
@spec insert_text(String.t(), non_neg_integer(), String.t()) :: String.t()
Inserts text at the specified position in the buffer.
@spec new() :: t()
Creates a new input handler with default values.
Processes a raw input string for the terminal, parsing control sequences and printable characters. This function drives the terminal command parser.