Luau Bindings — clipboard

The require("clipboard") script API — the shared text clipboard, the same one console copy/paste and (later) a Deskflow client use. Every function is [antos]. Design & native core: antos_clipboard.

local clipboard = require("clipboard")
clipboard.set("hello")
print(clipboard.get())      -- "hello"
Function Behaviour
clipboard.get() Current text (empty string if nothing copied).
clipboard.set(text) Set the clipboard → true, or nil, err.
clipboard.clear() Empty it.
clipboard.len() Length of the current text.

Related

Important: The Ant64 family of home computers are at early design/prototype stage, everything you see here is subject to change.