Module cream.clipboard
API for managing clipboards
Author:
| David Delassus <david.jose.delassus@gmail.com> |
Functions
Tables
Functions
- Clipboard:get (clip)
-
Get text from clipboard
Parameters
-
clip: The clipboard object
Return value:
Text from the clipboard or nil if none.
- Clipboard:set (clip, text)
-
Set text from clipboard
Parameters
-
clip: The clipboard object
-
text: Text to put in the clipboard
- cream.clipboard (name)
-
Create a new clipboard
Parameters
-
name: Clipboard's ATOM name, usually it is
PRIMARY, but it can also be CLIPBOARD.
Return value:
A new clipboard
Tables
- default
- Default clipboard (
CLIPBOARD)
- primary
PRIMARY clipboard