Raxol.Terminal.Commands.OSCHandlers (Raxol v0.5.0)
View SourceHandles Operating System Command (OSC) sequences.
This module dispatches OSC commands to their respective handlers based on the command number. Each handler is responsible for a specific set of related commands.
Supported Commands
- Window Operations (OSC 0, 1, 2, 7, 8, 1337)
- Color Palette (OSC 4)
- Clipboard Operations (OSC 9, 52)
- Color Management (OSC 10, 11, 12, 17, 19)
- Cursor and Font (OSC 12, 50, 112)
- Selection (OSC 51)
Summary
Functions
Handles an OSC command by dispatching it to the appropriate handler.
Functions
@spec handle(Raxol.Terminal.Emulator.t(), non_neg_integer(), String.t()) :: {:ok, Raxol.Terminal.Emulator.t()} | {:error, term(), Raxol.Terminal.Emulator.t()}
Handles an OSC command by dispatching it to the appropriate handler.
Parameters
emulator
- The terminal emulator statecommand
- The OSC command numberdata
- The command data
Returns
{:ok, emulator}
- Command handled successfully{:error, reason, emulator}
- Command failed with reason