Raxol.Terminal.Commands.OSCHandlers.Selection (Raxol v0.5.0)
View SourceHandles 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
@spec handle_51(Raxol.Terminal.Emulator.t(), String.t()) :: {:ok, Raxol.Terminal.Emulator.t()} | {:error, term(), Raxol.Terminal.Emulator.t()}
Handles OSC 51 commands for selection management.
Commands
51;?
- Query current selection51;start;x;y
- Set selection start position51;end;x;y
- Set selection end position51;clear
- Clear selection51;text;content
- Set selection text directly
Where:
- x, y are screen coordinates
- content is the text to select