Raxol.Terminal.InputHandler (Raxol v0.5.0)

View Source

Main input handler module that coordinates between different input handling components.

Summary

Functions

Handles clipboard copy operation.

Handles clipboard cut operation.

Handles clipboard paste operation.

Creates a new input handler with default values.

Processes a single character codepoint.

Processes a raw input string for the terminal.

Functions

handle_apc_sequence(emulator, command, data)

@spec handle_apc_sequence(Emulator.t(), String.t(), String.t()) :: Emulator.t()

Handles an APC sequence.

handle_copy(handler)

@spec handle_copy(Raxol.Terminal.Input.CoreHandler.t()) ::
  {:ok, Raxol.Terminal.Input.CoreHandler.t()} | {:error, any()}

Handles clipboard copy operation.

handle_csi_sequence(emulator, command, params)

@spec handle_csi_sequence(Emulator.t(), String.t(), [String.t()]) :: Emulator.t()

Handles a CSI sequence.

handle_cut(handler)

@spec handle_cut(Raxol.Terminal.Input.CoreHandler.t()) ::
  {:ok, Raxol.Terminal.Input.CoreHandler.t()} | {:error, any()}

Handles clipboard cut operation.

handle_dcs_sequence(emulator, command, data)

@spec handle_dcs_sequence(Emulator.t(), String.t(), String.t()) :: Emulator.t()

Handles a DCS sequence.

handle_osc_sequence(emulator, command, data)

@spec handle_osc_sequence(Emulator.t(), String.t(), String.t()) :: Emulator.t()

Handles an OSC sequence.

handle_paste(handler)

@spec handle_paste(Raxol.Terminal.Input.CoreHandler.t()) ::
  {:ok, Raxol.Terminal.Input.CoreHandler.t()} | {:error, any()}

Handles clipboard paste operation.

handle_pm_sequence(emulator, command, data)

@spec handle_pm_sequence(Emulator.t(), String.t(), String.t()) :: Emulator.t()

Handles a PM sequence.

new()

Creates a new input handler with default values.

process_character(emulator, char_codepoint)

@spec process_character(Emulator.t(), integer()) :: Emulator.t()

Processes a single character codepoint.

process_terminal_input(emulator, input)

@spec process_terminal_input(Emulator.t(), String.t()) :: {Emulator.t(), String.t()}

Processes a raw input string for the terminal.