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

View Source

Handles OSC 51 (Selection) commands.

This handler manages terminal selection operations, including:

  • Setting selection boundaries
  • Querying selection content
  • Managing selection attributes

Summary

Functions

Handles OSC 51 commands for selection management.

Functions

handle_51(emulator, data)

Handles OSC 51 commands for selection management.

Commands

  • 51;? - Query current selection
  • 51;start;x;y - Set selection start position
  • 51;end;x;y - Set selection end position
  • 51;clear - Clear selection
  • 51;text;content - Set selection text directly

Where:

  • x, y are screen coordinates
  • content is the text to select