libtcoddocumentation

3.6. Clipboard integration

With these functions, you can copy data in your OS' clipboard from the game or retrieve data from the clipboard.

Copy data to the clipboard

static void TCODSystem::setClipboard(const char *value)

void TCOD_sys_clipboard_set(const char *value)

ParameterDescription
valueText to copy in the clipboard

Paste data from the clipboard

static char *TCODSystem::getClipboard()

char *TCOD_sys_clipboard_get()