Skip to content

clipboard

miscellaneous · scripts/miscellaneous/clipboard.m

: str = clipboard ("paste")
: clipboard ("copy", text)

Copy or paste text via the system clipboard (desktop only).

On headless Linux this errors clearly unless a display and xclip are available.