The TclShell Class

The TclShell class, derived from Edit, is a top-level window that provides an interface to the Tcl interpreter. The help window gives additional information.

You may create an instance of the TclShell class as follows:

::tycho::view TclShell
The -text option specifies a welcome message. For example,
::tycho::view TclShell {-text "A fresh Tcl console\n"}
The -master option, if given a non-zero value, specifies that this is a "master" console. Closing a master console will close the entire application (after requesting confirmation). Moreover, the most recently created TclShell window that is designated master will capture standard output generated by the Tcl puts command, unless that output is redirected to a file.

There are a large number of public methods for TclShell. See the class documentation. To delete the above example:

Tycho Home Page


Copyright © 1996, The Regents of the University of California. All rights reserved.
Last updated: 96/11/07, comments to: eal@eecs.berkeley.edu