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 ...

+ Reply to Thread
Results 1 to 4 of 4

can we use shell-like short key in tcl shell

  1. Default 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?


  2. Default 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


  3. Default 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.


  4. Default 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?
    >


+ Reply to Thread

Similar Threads

  1. execute a shell script in a shell script
    By Application Development in forum Perl
    Replies: 2
    Last Post: 12-03-2007, 07:18 PM
  2. awk instead of shell?
    By Application Development in forum awk
    Replies: 4
    Last Post: 03-13-2007, 08:31 AM
  3. Replies: 6
    Last Post: 08-11-2006, 10:43 PM
  4. Shell
    By Application Development in forum basic.visual
    Replies: 6
    Last Post: 12-18-2004, 03:22 PM
  5. shell
    By Application Development in forum basic.visual
    Replies: 2
    Last Post: 12-21-2003, 04:00 PM