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
- antos_clipboard — design & native core · AntOS Libraries hub