Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to copy a output from tcl tutor 3.0b6 output pane.

58 views
Skip to first unread message

DeepanRaj Dhalapathy

unread,
Nov 5, 2015, 5:40:51 AM11/5/15
to
Hi all,

I am writing a tcl code in tcl tutor which generates a output of some 1 lakh lines output. I have to copy all this output in output pane in a single shot but I cant do this. The only option i know as of now is using Shift + page down button in the keyboard but that takes huge time and painful. So I need some shortcuts like ctrl+A to copy all texts as we do in MS-Word or notepad file.

Please help me in getting this clarified.

Regards,
D.DeepanRaj

Rich

unread,
Nov 5, 2015, 6:27:17 AM11/5/15
to
The example images on the Tcl tutor website
(http://www.msen.com/~clif/TclTutorTour.html) [NOTE - you should have
supplied this url) of the Tcl tutor interface appear as if it is itself
Tcl, and that the text boxes are Tk text widgets.

In which case, the documentation of the normal Tk text widget keyboard
bindings would be useful to you:

https://www.tcl.tk/man/tcl8.5/TkCmd/text.htm#M162

Unless Tcl tutor is doing something to replace these bindings, these
are the keys that "do something" within the various views.

The one you want is #18:

Control-/ selects the entire contents of the widget.

Afterwich, you should be able to do one of:

Control-c or key #20:

The F16 key (labelled Copy on many Sun workstations) or Meta-w copies
the selection in the widget to the clipboard, if there is a
selection. This action is carried out by the command tk_textCopy.

To copy the selected text to the clipboard.

Uwe Klein

unread,
Nov 5, 2015, 6:50:05 AM11/5/15
to
"man n text",
go down to default bindings for this widget class:

[18] Control-/ selects the entire contents of the widget.


no idea if this helps.

uwe

DeepanRaj Dhalapathy

unread,
Nov 5, 2015, 7:07:51 AM11/5/15
to
Hi Rich,

Thank you so much for the reply. I was working with Windows 7 in which "ctrl + / " worked to select all the output and "ctrl + c" helped in copying.

Thanks a lot for your quick reply. Keep up the good work.

Regards,
D.DeepanRaj
0 new messages