Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2003-01-07
17:38 • Closed ticket [659494ffff]: Wish execution of console hide fails plus 8 othe... artifact: d9f495bcb6 user: dkf
2002-12-28
21:29 • New ticket [659494ffff]. artifact: 4ec3188f95 user: nobody

Wish execution of console hide fails

Closed / Invalid659494ffffffffffffffffffffffffffffffffffCreated 24 years agoUpdated 24 years ago
Descriptionplain2002-12-28 21:29:06
OS Platform and Version: Macintosh, 10.2.3
Problem Behavior: 
When executing 'wish script' from bash shell, where the
script file contains a "console hide" command,  I get
an error message reporting that the console command is
invalid.
Expected Behavior:
Console hide and console show commands in tcl scripts
should be obeyed.
Details:
I get the following message 
    invalid command name "console" while executing
"console hide" 

If I execute wish by 
   bash-2.05a$ wish </dev/null
and then from the console window type
   % source script
Everything is ok. 

It also fails if the script is sourced from the Wish
menu item "file->source"
dkfplain2003-01-07 17:38:21
Logged In: YES 
user_id=79902

The console is a feature of Tk, not Tcl.  And it is not
generally present on UNIX systems, though it sounds like
MacOSX-Tcl is inconsistent about this.  The usual workaround
is to do, for example:
  catch {console hide}
Log in (anonymous is fine) to add a comment.