Sujet : Re: console not working
De : gregor.ebbing (at) *nospam* gmx.de (greg)
Groupes : comp.lang.tclDate : 18. Dec 2024, 01:24:58
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vjt4oq$1vk3v$1@dont-email.me>
References : 1
User-Agent : Mozilla Thunderbird
Am 17.12.24 um 22:51 schrieb Luc:
I am trying to run the 'console show' command. But Tk is not having it.
Error in startup script: invalid command name "console"
while executing
"console show"
(file "p1.tcl" line 4)
Compilation failed.
To my dismay, the manual says,
"Except for TkAqua, this command is not available when Tk is loaded
into a tclsh interpreter with 'package require Tk' as a conventional
terminal is expected to be present in that case."
I guess I will never understand that decision. So what if a terminal
is expected to be present? How about letting that decision up to us?
Anyway, I try to run the script with wish and the same error happens
Any solution to that?
Hello,
regarding console,
there are also differences between wish and tclsh on Windows:
http://www.tcl.tk/man/tcl/UserCmd/wish.htm#M14One solution would be:
https://wiki.tcl-lang.org/page/console+for+Unixa wrapper for console.tcl in $tk_library
Also works with Windows.
Gregor