[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ESPResSo-devel] Tcl interpreter changed?

From: Kai Grass
Subject: Re: [ESPResSo-devel] Tcl interpreter changed?
Date: Tue, 3 Jul 2007 10:11:23 -0400

I have had a look at the "tclline.tcl" file, and I located
the problem in lines 133 and 134:

            set col [expr {$cursorLen % $env(COLUMNS)}]
            set row [expr {$n + ($cursorLen / $env(COLUMNS)) + 1}]

The environment-variable "COLUMNS" is most probably only
defined on Linux systems.

Olaf is right with his suspection, but a fix is not as easy as it might seem as just specifying COLUMNS before starting Espresso is not enough (for some reasons). Setting env(COLUMNS) within tclline however fixes the problem. (And by the way, I like the new features...)

I had an initial look into tcl-readline a while ago because as frequent user of the interactive mode, I thought it would be a nice improvement. But I gave up, because I didn't find a handle to integrate it. If someone has an idea on it, I would greatly appreciate it. Looking into VMD might help since the console they use also supports readline. But please be aware, that their implementation is TK based and far from stable ...


reply via email to

[Prev in Thread] Current Thread [Next in Thread]