Raxol.Terminal.Commands.OSCHandlers (Raxol v0.5.0)

View Source

Handles 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

handle(emulator, command, data)

Handles an OSC command by dispatching it to the appropriate handler.

Parameters

  • emulator - The terminal emulator state
  • command - The OSC command number
  • data - The command data

Returns

  • {:ok, emulator} - Command handled successfully
  • {:error, reason, emulator} - Command failed with reason