clipboard

Manipulate Tk clipboard


SYNOPSIS

(clipboard option . args)

DESCRIPTION

This procedure provides a STk interface to the Tk clipboard, which stores data for later retrieval using the selection mechanism. In order to copy data into the clipboard, clipboard clear must be called, followed by a sequence of one or more calls to clipboard append. To ensure that the clipboard is updated atomically, all appends should be completed before returning to the event loop.

The first argument to clipboard determines the format of the rest of the arguments and the behavior of the procedure. The following forms are currently supported:

(clipboard 'clear ?:displayof window?)

(clipboard 'append ?:displayof window? ?:format format? ?:type type? ?--? data)

Go to top