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

Maybe OT. Changed behaviour of tkcon

47 views
Skip to first unread message

Alan Grunwald

unread,
Jan 17, 2023, 12:39:51 PM1/17/23
to
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

Ted Nolan <tednolan>

unread,
Jan 17, 2023, 1:28:14 PM1/17/23
to
In article <tq6mh2$3b0as$1...@dont-email.me>,
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..

Christian Gollwitzer

unread,
Jan 17, 2023, 3:32:55 PM1/17/23
to
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:anon...@tkcon.cvs.sourceforge.net:/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


Rich

unread,
Jan 17, 2023, 9:28:36 PM1/17/23
to
Alan Grunwald <nospam....@gmail.com> 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.

Dave

unread,
Jan 17, 2023, 10:18:10 PM1/17/23
to
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

Alan Grunwald

unread,
Jan 18, 2023, 9:39:18 AM1/18/23
to
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)?

Alan Grunwald

unread,
Jan 18, 2023, 9:40:37 AM1/18/23
to
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.

Luc

unread,
Jan 18, 2023, 10:35:34 AM1/18/23
to
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
>>

0 new messages