Raxol.Terminal.Commands.Executor (Raxol v0.4.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.

This function delegates to handler modules (e.g., CSIHandlers, CursorHandlers, etc.). To add support for new CSI commands, implement them in the appropriate handler module.

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