Clipboard.setText

Sets the contents of the clipboard to the given UTF-8 string. GTK+ will make a copy of the text and take responsibility for responding for requests for the text, and for converting the text into the requested format.

class Clipboard
void
setText
(
string text
,
int len
)

Parameters

text string

a UTF-8 string.

len int

length of text, in bytes, or -1, in which case the length will be determined with strlen().