can we use shell-like short key in tcl shell - TCL
This is a discussion on can we use shell-like short key in tcl shell - TCL ; 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 ...
-
can we use shell-like short key in tcl shell
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?
-
Re: can we use shell-like short key in tcl shell
On May 20, 3:58 am, BingYU <yubin...{}> wrote:
> 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?
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
-
Re: can we use shell-like short key in tcl shell
On May 19, 8:58 pm, BingYU <yubin...{}> wrote:
> 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?
Have a look at http://wiki.tcl.tk/16139.
-
Re: can we use shell-like short key in tcl shell
If you have X or other windowing
system available, I recommend
tkcon. Lots of convenience features.
http://wiki.tcl.tk/Tkcon
BingYU wrote:
> 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?
>
Similar Threads
-
By Application Development in forum Perl
Replies: 2
Last Post: 12-03-2007, 07:18 PM
-
By Application Development in forum awk
Replies: 4
Last Post: 03-13-2007, 08:31 AM
-
By Application Development in forum awk
Replies: 6
Last Post: 08-11-2006, 10:43 PM
-
By Application Development in forum basic.visual
Replies: 6
Last Post: 12-18-2004, 03:22 PM
-
By Application Development in forum basic.visual
Replies: 2
Last Post: 12-21-2003, 04:00 PM