clipboard.addText is a function that is part of the clipboard functions.

The function sets the content of the clipboard, so it can be pasted somewhere else.

This has been introduced in TI-Nspire OS 3.0 (Changes).

## Syntax

Parameter Type Description
text
string The text you want to add to the clipboard

## Example

--Clipboard test : Setting "Hello" in the clipboard and displaying it.

function on.paint(gc)
text = clipboard.getText()
gc:drawString(text, 100, 100, "top")
end

function on.enterKey() -- event that fires when the user presses the enter key.
end