Raxol.Terminal.Commands.Executor (Raxol v0.3.0)

View Source

Executes 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 an OSC (Operating System Command).

Functions

execute_csi_command(emulator, params_buffer, intermediates_buffer, final_byte)

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).

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

Executes a DCS (Device Control String) command.

Params: params_buffer, intermediates_buffer, data_string (content between DCS and ST).

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).

Params: command_string (the content between OSC and ST).