Skip to main content

Module clipboard

Module clipboard 

Source
Expand description

Clipboard copy through the terminal’s OSC 52 escape.

Structs§

TooLarge
The text was longer than MAX_COPY_BASE64 once encoded.

Constants§

MAX_COPY_BASE64
Largest base64 payload sent; terminals such as xterm drop longer OSC 52 sequences.

Functions§

osc52
The OSC 52 sequence that puts text on the clipboard of the terminal reading it.