Raxol.Terminal.Commands.OSCHandlers.Clipboard (Raxol v0.5.0)
View SourceHandles clipboard-related OSC commands.
This handler manages clipboard operations, including:
- Setting and querying clipboard content
- Managing selection content
- Handling different clipboard types (primary, clipboard)
Supported Commands
- OSC 9: Set/Query clipboard content
- OSC 52: Set/Query clipboard or selection content
Summary
Functions
Handles OSC 9 command to set/query clipboard content.
Handles OSC 52 command to set/query clipboard or selection content.
Functions
@spec handle_9(Raxol.Terminal.Emulator.t(), String.t()) :: {:ok, Raxol.Terminal.Emulator.t()} | {:error, term(), Raxol.Terminal.Emulator.t()}
Handles OSC 9 command to set/query clipboard content.
@spec handle_52(Raxol.Terminal.Emulator.t(), String.t()) :: {:ok, Raxol.Terminal.Emulator.t()} | {:error, term(), Raxol.Terminal.Emulator.t()}
Handles OSC 52 command to set/query clipboard or selection content.
Command Format
52;c;?
- Query clipboard content52;c;content
- Set clipboard content52;s;?
- Query selection content52;s;content
- Set selection content
Where:
- c: clipboard
- s: selection