home *** CD-ROM | disk | FTP | other *** search
- '\"
- '\" Copyright (c) 1991 The Regents of the University of California.
- '\" All rights reserved.
- '\"
- '\" Permission is hereby granted, without written agreement and without
- '\" license or royalty fees, to use, copy, modify, and distribute this
- '\" documentation for any purpose, provided that the above copyright
- '\" notice and the following two paragraphs appear in all copies.
- '\"
- '\" IN NO EVENT SHALL THE UNIVERSITY OF CALIFORNIA BE LIABLE TO ANY PARTY
- '\" FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
- '\" ARISING OUT OF THE USE OF THIS DOCUMENTATION, EVEN IF THE UNIVERSITY OF
- '\" CALIFORNIA HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- '\"
- '\" THE UNIVERSITY OF CALIFORNIA SPECIFICALLY DISCLAIMS ANY WARRANTIES,
- '\" INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
- '\" AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS
- '\" ON AN "AS IS" BASIS, AND THE UNIVERSITY OF CALIFORNIA HAS NO OBLIGATION TO
- '\" PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
- '\"
- '\" $Header: /user6/ouster/wish/man/RCS/wish.1,v 1.8 93/07/07 11:32:35 ouster Exp $ SPRITE (Berkeley)
- '/"
- .so man.macros
- .HS wish tkcmds
- .BS
- '\" Note: do not modify the .SH NAME line immediately below!
- .SH NAME
- wish \- Simple windowing shell
- .SH SYNOPSIS
- \fBwish\fR ?\fIoptions\fR? ?\fIarg arg ...\fR?
- .SH OPTIONS
- .IP "\fB\-display \fIdisplay\fR" 15
- Display (and screen) on which to display window.
- .IP "\fB\-file \fIfileName\fR" 15
- Read commands from \fIfileName\fR rather than standard input. The
- last element in \fIfileName\fR will be used as the title for the
- application and name of its interpreter for \fBsend\fR
- commands (unless overridden by the \fB\-name\fR option\fR).
- .IP "\fB\-geometry \fIgeometry\fR" 15
- Initial geometry to use for window.
- .IP "\fB\-name \fIname\fR" 15
- Use \fIname\fR as the title to be displayed in the window, and
- as the name of the interpreter for \fBsend\fR commands.
- .IP "\fB\-sync\fR" 15
- Execute all X server commands synchronously, so that errors
- are reported immediately. This will result in much slower
- execution, but it is useful for debugging.
- .IP "\fB\-help\fR" 15
- Print a summary of the command-line options and exit.
- .BE
-
- .SH DESCRIPTION
- .PP
- \fBWish\fR is a simple program consisting of the Tcl command
- language, the Tk toolkit, and a main program that reads commands
- from standard input or from a file.
- It creates a main window and then processes Tcl commands.
- If \fBwish\fR is invoked with no \fB\-f\fR option then it
- reads Tcl commands interactively from standard input.
- It will continue processing commands until all windows have been
- deleted or until end-of-file is reached on standard input.
- .PP
- If the \fB\-file\fR option is provided to Tk, then \fBwish\fR reads Tcl
- commands from the file named in the \fB\-file\fR option. These
- commands will normally create an interactive interface consisting
- of one or more widgets. When the end of the command file is
- reached, \fBwish\fR will continue to respond to X events until
- all windows have been deleted.
- .PP
- \fBWish\fR sets the following Tcl variables to describe its
- command-line arguments, not including the command-line options
- listed above:
- .TP
- \fBargc\fR
- Contains a count of the number of \fIarg\fR arguments (0 if none).
- .TP
- \fBargv\fR
- Contains a Tcl list whose elements are the \fIarg\fR arguments,
- in order, or an empty string if there are no \fIarg\fR arguments.
- .TP
- \fBargv0\fR
- .VS
- Contains \fIfileName\fR if it was specified.
- Otherwise, contains the name by which \fBwish\fR was invoked.
- .VE
- .PP
- If you create a Tcl script in a file whose first line is
- .DS
- \fB#!/usr/local/bin/wish -f
- .DE
- then you can invoke the script file directly from your shell if
- you mark it as executable.
- This assumes that \fBwish\fR has been installed in the default
- location in /usr/local/bin; if it's installed somewhere else
- then you'll have to modify the above line to match.
-
- .SH KEYWORDS
- shell, toolkit
-