Skip to main content

Module clip

Module clip 

Source
Expand description

§Copy and Save

The last command’s plain output, as an OSC 52 clipboard sequence (Ctrl-Y) or as a file (save).

Enums§

SaveError
Why save wrote nothing.

Constants§

OSC52_MAX_PAYLOAD
The most base64 bytes Ctrl-Y sends. Terminals drop larger OSC 52 writes.
SAVE_ESCAPE
What save says when a relative path leaves the current directory.
SAVE_USAGE
The usage line for save.

Functions§

fits_osc52
True when the OSC 52 payload for text stays within the cap.
osc52
The OSC 52 sequence that puts text on the system clipboard.
save
Runs save <file> [--force] over the last output. Returns the note to show on success, or the reason nothing was written.