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.

Get Practical Programming in Tcl & Tk, Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.