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

can we use shell-like short key in tcl shell

10 views
Skip to first unread message

BingYU

unread,
May 19, 2007, 11:58:32 PM5/19/07
to
in nominal shell, we can use the command line short key such as CTRL
+P (previous command) CTRL+H (backspace) CTRL+ K (delete all the the
end) CTRL + A (go to the begning of the command line.

In tclsh/tcl, when I debug a few lines of scripts, I find it is very
unconvenient withou this kind of short key. so my question is
straigthforward, Is this a bug or feature? Can this kind of thing
done in tclshl? If NOT, is there any work around tips ? any
suggestions?

neuro...@gmail.com

unread,
May 20, 2007, 12:41:38 AM5/20/07
to

It would be nice if tclsh had a built-in cross-platform readline type
capability.
You could try using 'rlwrap'.
I start my tclsh as

%rlwrap tclsh

and then all the arrow keys CTRL +A etc seem to do the right thing.

J

bill...@alum.mit.edu

unread,
May 20, 2007, 12:42:15 AM5/20/07
to

Have a look at http://wiki.tcl.tk/16139.

Roy Terry

unread,
May 20, 2007, 12:53:04 PM5/20/07
to
If you have X or other windowing
system available, I recommend
tkcon. Lots of convenience features.

http://wiki.tcl.tk/Tkcon

0 new messages