Raxol.Terminal.Commands.Executor (Raxol v0.3.0)
View SourceExecutes parsed terminal commands (CSI, OSC, DCS).
This module takes parsed command details and the current emulator state, and returns the updated emulator state after applying the command's effects.
Summary
Functions
Executes a CSI (Control Sequence Introducer) command.
Executes a DCS (Device Control String) command.
Executes an OSC (Operating System Command).
Functions
@spec execute_csi_command( Raxol.Terminal.Emulator.t(), String.t(), String.t(), non_neg_integer() ) :: Raxol.Terminal.Emulator.t()
Executes a CSI (Control Sequence Introducer) command.
TODO: Implement the actual logic for handling various CSI commands. This likely involves pattern matching on the final_byte and intermediates, parsing parameters, and calling specific handler functions (e.g., from Modes, Screen, Cursor modules).
@spec execute_dcs_command( Raxol.Terminal.Emulator.t(), String.t(), String.t(), non_neg_integer(), String.t() ) :: Raxol.Terminal.Emulator.t()
Executes a DCS (Device Control String) command.
Params: params_buffer
, intermediates_buffer
, data_string
(content between DCS and ST).
@spec execute_osc_command(Raxol.Terminal.Emulator.t(), String.t()) :: Raxol.Terminal.Emulator.t()
Executes an OSC (Operating System Command).
Params: command_string
(the content between OSC and ST).