Version 8 of console

Updated 2004-11-04 15:35:28

http://purl.org/tcl/home/man/tcl8.4/TkCmd/console.htm

It is my understanding that, for some strange reason, Tk does not yet support console on Unix. That seems very anti-Tk to me - why waste so much time being cross platform and then break it by not offering something so simple?

RS I think it was the other way round: on Unixes, where Tcl originated, you'd start wish at a console and be able to use its stdin/out/err from inside Tcl. Windows apps typically don't have these channels, so the Windows wish console was added to compensate for the loss. That WinTk's console grew more powerful (e.g. you can interact with the interpreter while a script is running, which you can't by default on Unix) justifies your wish to re-implant the original "bugfix" into generic Tk - or pull tkcon into the core?


Certainly I can see having at least the minimal console everywhere -I would also be heartily in favor of tkcon or something better being the default console across platforms.

Of course, in both cases, a TIP is going to be needed...


Actually, would a TIP really be needed to activate a command that was already present on the other platforms?


See console for Unix.

JL Why hasn't the console every been made available on Unix? (I've checked up to 8.4) console.n and console.tcl are already installed, and it is useful for simple interactive debugging. All that's needed is to supply the 'console' command, or use something like the workaround above.

This is not the same as adding tkcon. All I want is just the same, simple console across all platforms.


LV I don't recall whether a TIP has been filed to make this happen.


RS uses the following binding to have a console for debugging pop up when needed:

 bind . ? {catch {console show}}

Tk syntax help - Arts and crafts of Tcl-Tk programming - Category Command, a part of the Tk package