O'Reilly logo

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

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required