Previous section   Next section

Practical Programming in Tcl & Tk, Third Edition
By Brent B. Welch

Table of Contents
Chapter 35.  Selections and the Clipboard

The clipboard Command

The clipboard command installs values into the CLIPBOARD selection. The CLIPBOARD is meant for values that have been recently or temporarily deleted. It is use for the copy and paste model of selections. You must use the selection command to retrieve values from the CLIPBOARD selection:

selection get -selection CLIPBOARD

Table 35-2 summarizes the clipboard command:

Table 35-2. The clipboard command.
clipboard clear ?-displayof win?Clears the CLIPBOARD selection.
clipboard append ?-displayof win? ?-format format? ?-type type? ?--? dataAppends data to the CLIPBOARD with the specified type and format, which both default to STRING.

      Previous section   Next section