Home     |     .Net Programming    |     cSharp Home    |     Sql Server Home    |     Javascript / Client Side Development     |     Ajax Programming

Ruby on Rails Development     |     Perl Programming     |     C Programming Language     |     C++ Programming     |     IT Jobs

Python Programming Language     |     Laptop Suggestions?    |     TCL Scripting     |     Fortran Programming     |     Scheme Programming Language


 
 
Cervo Technologies
The Right Source to Outsource

MS Dynamics CRM 3.0

TCL(Tool Command Language) Scripting

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?

On May 20, 3:58 am, BingYU <yubin@gmail.com> 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

On May 19, 8:58 pm, BingYU <yubin@gmail.com> 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.
If you have X or other windowing
system available, I recommend
tkcon. Lots of convenience features.

http://wiki.tcl.tk/Tkcon

Add to del.icio.us | Digg this | Stumble it | Powered by Megasolutions Inc