• Maybe OT. Changed behaviour of tkcon

    From Alan Grunwald@21:1/5 to All on Tue Jan 17 17:39:46 2023
    I've just installed Linux Mint on a second laptop.

    I am a long-time user of tkcon, principally because it gives me
    command-line recall, which I don't get from pure-and-simple tclsh.

    On the old system, with the cursor on the bottom line, positioned
    following the "% " prompt, if I press up-arrow, I get the last line
    typed which I can edit.

    On the new system, it simply moves the cursor up a line.

    I wondered whether this was because I was using MATE rather than
    cinnamon on the new system, but I've switched to cinnamon and it still (mis)behaving the same way.

    Please can someone suggest what I need to tweak?

    Many Thanks,
    Alan

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Ted Nolan @21:1/5 to [email protected] on Tue Jan 17 18:28:09 2023
    In article <tq6mh2$3b0as$[email protected]>,
    Alan Grunwald <[email protected]> wrote:
    I've just installed Linux Mint on a second laptop.

    I am a long-time user of tkcon, principally because it gives me
    command-line recall, which I don't get from pure-and-simple tclsh.

    On the old system, with the cursor on the bottom line, positioned
    following the "% " prompt, if I press up-arrow, I get the last line
    typed which I can edit.

    On the new system, it simply moves the cursor up a line.

    I wondered whether this was because I was using MATE rather than
    cinnamon on the new system, but I've switched to cinnamon and it still >(mis)behaving the same way.

    Please can someone suggest what I need to tweak?

    Many Thanks,
    Alan

    Don't know the answer to your question, but I have used tclreadline
    in some cases when I wanted a tclsh with history & editing. (Actually
    my need was a bit more convoluted than that, but it does give you that).

    --
    columbiaclosings.com
    What's not in Columbia anymore..

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Christian Gollwitzer@21:1/5 to All on Tue Jan 17 21:32:51 2023
    Am 17.01.23 um 18:39 schrieb Alan Grunwald:
    I've just installed Linux Mint on a second laptop.

    I am a long-time user of tkcon, principally because it gives me
    command-line recall, which I don't get from pure-and-simple tclsh.

    On the old system, with the cursor on the bottom line, positioned
    following the "% " prompt, if I press up-arrow, I get the last line
    typed which I can edit.

    On the new system, it simply moves the cursor up a line.

    Hi Alan,
    this is a bug that came into existence with newer versions of Tcl. You
    should update your version of tkcon.

    You can get the patched version from the CVS repo in sourceforge:

    cvs -z3 -d:pserver:[email protected]:/cvsroot/tkcon co
    -P tkcon

    With the tkcon.tcl found there, the issue should be gone. Also another
    one, where you get an error when the mouse touches a highlighted error.

    Yes, CVS is basically disabled and someone should maybe rescue tkcon and
    put it into Github...

    Christian

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Rich@21:1/5 to Alan Grunwald on Wed Jan 18 02:28:32 2023
    Alan Grunwald <[email protected]> wrote:
    I've just installed Linux Mint on a second laptop.

    I am a long-time user of tkcon, principally because it gives me
    command-line recall, which I don't get from pure-and-simple tclsh.

    An alternative, since you are on Linux, is to use 'rlwrap' to launch
    tclsh. Rlwrap provides 'readline' services to CLI apps that do not
    provide it themselves, And it provides command history across
    invocations, so you can get past command lines from a prior session if
    you like.

    It is trivial to use:

    rlwrap tclsh

    And you have a full readline enabled tclsh.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Dave@21:1/5 to All on Tue Jan 17 21:18:03 2023
    Take a look at https://github.com/wjoye/tkcon/releases
    It's the most up-to-date version I've been able to find

    --
    computerjock AT mail DOT com

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Alan Grunwald@21:1/5 to Christian Gollwitzer on Wed Jan 18 14:39:14 2023
    On 17/01/2023 20:32, Christian Gollwitzer wrote:
    Am 17.01.23 um 18:39 schrieb Alan Grunwald:
    I've just installed Linux Mint on a second laptop.

    I am a long-time user of tkcon, principally because it gives me
    command-line recall, which I don't get from pure-and-simple tclsh.

    On the old system, with the cursor on the bottom line, positioned
    following the "% " prompt, if I press up-arrow, I get the last line
    typed which I can edit.

    On the new system, it simply moves the cursor up a line.

    Hi Alan,
    this is a bug that came into existence with newer versions of Tcl. You
    should update your version of tkcon.

    You can get the patched version from the CVS repo in sourceforge:

    cvs -z3 -d:pserver:[email protected]:/cvsroot/tkcon co
    -P tkcon

    With the tkcon.tcl found there, the issue should be gone. Also another
    one, where you get an error when the mouse touches a highlighted error.

    Yes, CVS is basically disabled and someone should maybe rescue tkcon and
    put it into Github...

        Christian


    Thanks Christian, that has done the trick.

    I had forgotten that I was no longer seeing 'Error: unknown option
    "-under"' on the old system. It's nice to lose them again!

    Can we not get tkcon added to Tklib (or Tcllib)?

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Alan Grunwald@21:1/5 to Dave on Wed Jan 18 14:40:33 2023
    On 18/01/2023 03:18, Dave wrote:
    Take a look at https://github.com/wjoye/tkcon/releases
    It's the most up-to-date version I've been able to find

    Thanks Dave - That must be where I acquired version 2.7.10 that I see I
    had on the old system.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Luc@21:1/5 to Rich on Wed Jan 18 12:35:30 2023
    On Wed, 18 Jan 2023 02:28:32 -0000 (UTC), Rich wrote:

    An alternative, since you are on Linux, is to use 'rlwrap' to launch
    tclsh. Rlwrap provides 'readline' services to CLI apps that do not
    provide it themselves, And it provides command history across
    invocations, so you can get past command lines from a prior session if
    you like.

    It is trivial to use:

    rlwrap tclsh

    And you have a full readline enabled tclsh.


    rlwrap doesn't give you Tab completion, a customized prompt, history search, copy and paste, clipboard capture, interpreters, sockets, history
    substitution, history save or a cool .tkconrc file with your favorite procs
    and overloaded commands.

    Even when I stopped coding for some 15 years, I still kept using Tkcon
    every day.

    Tkcon may be the very best thing ever done with/by/for Tcl.

    Do the smart thing. Use Tkcon. :-)

    --
    Luc


    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)