One of the useful features of [Tkcon] is that it will evaluate (possibly multiple) commands pasted into it. However, the paste command works in a way that is probably more familiar to *nix users than to Windows users. If there is any text selected (but not copied to the clipboard) in the Tkcon window or in a Tk application, it will be pasted in preference to text on the clipboard. To paste from the clipboard and ignore the selected text, it is necessary to change the GetSelection procedure. proc ::tkcon::GetSelection {w} { if { ![catch {selection get -displayof $w -type UTF8_STRING} txt] || ![catch {selection get -displayof $w} txt] || ![catch {selection get -displayof $w -selection CLIPBOARD} txt] } { return $txt } return -code error "could not find default selection" } Remove the first two lines of the [if] test expression. If you are developing an application using [Tkcon as an application console] you can paste great gobs of code from your text editor into the running application as you fix bugs and this will not be affected by the current selection (if any) in the application itself. Hope this helps, [Alastair Davies] 31 Jan 2007 ---- [Category Debugging]