Clipboard Functions

FUNCTIONS

  int    set_clipboard_text(App *app, char *text);
  char * get_clipboard_text(App *app);

NOTES

The set_clipboard_text function causes the system clipboard to contain the specified zero-terminated text string. It returns zero if it fails for some reason, or non-zero if it succeeds.

The get_clipboard_text function retrieves the text string from the system clipboard (if it contains a text string). If the clipboard does not contain text, or it is empty, this function will return NULL.

Text may be modified in the process of saving it to the clipboard. It is not guaranteed that non-ASCII characters, or control characters other than tab and newline, can be transferred using this mechanism.

EXAMPLES