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

View Source

Handles 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

handle_9(emulator, data)

Handles OSC 9 command to set/query clipboard content.

handle_52(emulator, data)

Handles OSC 52 command to set/query clipboard or selection content.

Command Format

  • 52;c;? - Query clipboard content
  • 52;c;content - Set clipboard content
  • 52;s;? - Query selection content
  • 52;s;content - Set selection content

Where:

  • c: clipboard
  • s: selection