Raxol.Terminal.CommandExecutor (Raxol v0.5.0)

View Source

DEPRECATED: Handles the execution of parsed terminal commands.

This module is being replaced by Raxol.Terminal.Commands.Executor and various submodules within Raxol.Terminal.Commands.*.

Existing functions are kept temporarily for backward compatibility or as placeholders during refactoring, but they primarily log warnings and delegate to the new modules where possible.

For mode handling, use Raxol.Terminal.Commands.ModeHandlers instead.

Summary

Functions

Executes a CSI (Control Sequence Introducer) command.

Executes an OSC (Operating System Command).

Gets a parameter at a specific index from the params list.

Parses a raw parameter string buffer into a list of integers or nil values.

Functions

execute_csi_command(emulator, params_buffer, intermediates_buffer, final_byte)

This function is deprecated. This module is deprecated. Use Raxol.Terminal.Commands.* modules instead..

Executes a CSI (Control Sequence Introducer) command.

DEPRECATED: Use Raxol.Terminal.Commands.Executor.execute_csi_command/4 instead.

execute_dcs_command(emulator, params_buffer, intermediates_buffer, final_byte, payload)

Executes a DCS (Device Control String) command.

DEPRECATED: Use Raxol.Terminal.Commands.Executor.execute_dcs_command/5 instead.

execute_osc_command(emulator, command_string)

@spec execute_osc_command(Raxol.Terminal.Emulator.t(), String.t()) ::
  Raxol.Terminal.Emulator.t()

Executes an OSC (Operating System Command).

DEPRECATED: Use Raxol.Terminal.Commands.Executor.execute_osc_command/2 instead.

get_param(params, index, default \\ 1)

@spec get_param([integer() | nil], pos_integer(), integer()) :: integer()

Gets a parameter at a specific index from the params list.

DEPRECATED: Use Raxol.Terminal.Commands.Parser.get_param/3 instead.

parse_params(params_string)

@spec parse_params(String.t()) :: [integer() | nil | [integer() | nil]]

Parses a raw parameter string buffer into a list of integers or nil values.

DEPRECATED: Use Raxol.Terminal.Commands.Parser.parse_params/1 instead.