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

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, intermediates, final_byte, payload)

Placeholder for DCS command execution

execute_osc_command(emulator, payload_buffer)

Placeholder for OSC command execution