Raxol.Terminal.Input.ControlSequenceHandler (Raxol Terminal v2.6.0)

Copy Markdown View Source

Handles various control sequences for the terminal emulator. Includes CSI, OSC, DCS, PM, and APC sequence handling.

APC Sequences

APC (Application Program Command) sequences are used by the Kitty graphics protocol for transmitting images. The format is:

ESC _ G <control-data> ; <payload> ESC \

Where G indicates Kitty graphics and control-data contains key=value pairs.

Summary

Functions

Handles an APC (Application Program Command) sequence.

Handles a CSI (Control Sequence Introducer) sequence.

Handles a DCS (Device Control String) sequence.

Handles an OSC (Operating System Command) sequence.

Handles a PM (Privacy Message) sequence.

Functions

handle_apc_sequence(emulator, command, data)

Handles an APC (Application Program Command) sequence.

APC sequences are used by the Kitty graphics protocol. The command indicates the type of APC sequence:

  • G - Kitty graphics protocol
  • Other commands are logged and ignored

handle_csi_sequence(emulator, command, params)

Handles a CSI (Control Sequence Introducer) sequence.

handle_dcs_sequence(emulator, command, data)

Handles a DCS (Device Control String) sequence.

handle_osc_sequence(emulator, command, data)

Handles an OSC (Operating System Command) sequence.

handle_pm_sequence(emulator, command, data)

Handles a PM (Privacy Message) sequence.