1212.SH NAME
1313wish \- Simple windowing shell
1414.SH SYNOPSIS
15- \fB wish \fR ?\fB \- encoding \fI name \ fR ? ?\fI fileName arg arg ... \fR ?
15+ \fB wish \fR ?\fB options \ fR ? ?\fI fileName arg ... \fR ?
1616.SH OPTIONS
17+ .\" OPTION: -encoding
1718.IP " \fB \- encoding \fI name \fR " 20
1819Specifies the encoding of the text stored in \fI fileName \fR .
1920This option is only recognized prior to the \fI fileName \fR argument.
21+ .\" OPTION: -colormap
2022.IP " \fB \- colormap \fI new \fR " 20
2123Specifies that the window should have a new private colormap instead of
2224using the default colormap for the screen.
25+ .\" OPTION: -display
2326.IP " \fB \- display \fI display \fR " 20
2427Display (and screen) on which to display window.
28+ .\" OPTION: -geometry
2529.IP " \fB \- geometry \fI geometry \fR " 20
2630Initial geometry to use for window. If this option is specified, its
2731value is stored in the \fB geometry \fR global variable of the application's
2832Tcl interpreter.
33+ .\" OPTION: -name
2934.IP " \fB \- name \fI name \fR " 20
3035Use \fI name \fR as the title to be displayed in the window, and
3136as the name of the interpreter for \fB send \fR commands.
37+ .\" OPTION: -sync
3238.IP " \fB \- sync \fR " 20
3339Execute all X server commands synchronously, so that errors
3440are reported immediately. This will result in much slower
3541execution, but it is useful for debugging.
42+ .\" OPTION: -use
3643.IP " \fB \- use \fR \fI id \fR " 20
3744Specifies that the main window for the application is to be embedded in
3845the window whose identifier is \fI id \fR , instead of being created as an
@@ -44,10 +51,12 @@ Note that on some platforms this will only work correctly if \fIid\fR
4451refers to a Tk \fB frame \fR or \fB toplevel \fR that has its
4552\fB \- container \fR option enabled.
4653.RE
54+ .\" OPTION: -visual
4755.IP " \fB \- visual \fI visual \fR " 20
4856Specifies the visual to use for the window.
4957\fI Visual \fR may have any of the forms supported by the \fB Tk_GetVisual \fR
5058procedure.
59+ .\" OPTION: --
5160.IP " \fB \- \| \- \fR " 20
5261Pass all remaining arguments through to the script's \fB argv \fR
5362variable without interpreting them.
@@ -117,30 +126,40 @@ file, is the same as its name except that the first letter is
117126capitalized.
118127.SH "VARIABLES"
119128.PP
120- \fB Wish \fR sets the following Tcl variables:
129+ \fB Wish \fR sets the following global Tcl variables:
130+ .\" VARIABLE: argc
121131.TP 15
122132\fB argc \fR
133+ .
123134Contains a count of the number of \fI arg \fR arguments (0 if none),
124135not including the options described above.
136+ .\" VARIABLE: argv
125137.TP 15
126138\fB argv \fR
139+ .
127140Contains a Tcl list whose elements are the \fI arg \fR arguments
128141that follow a \fB \- \| \- \fR option or do not match any of the
129142options described in \fB OPTIONS \fR above, in order, or an empty string
130143if there are no such arguments.
144+ .\" VARIABLE: argv0
131145.TP 15
132146\fB argv0 \fR
147+ .
133148Contains \fI fileName \fR if it was specified.
134149Otherwise, contains the name by which \fB wish \fR was invoked.
150+ .\" VARIABLE: geometry
135151.TP 15
136152\fB geometry \fR
153+ .
137154If the \fB \- geometry \fR option is specified, \fB wish \fR copies its
138155value into this variable. If the variable still exists after
139156\fI fileName \fR has been evaluated, \fB wish \fR uses the value of
140157the variable in a \fB wm geometry \fR command to set the main
141158window's geometry.
159+ .\" VARIABLE: tcl_interactive
142160.TP 15
143161\fB tcl_interactive \fR
162+ .
144163Contains 1 if \fB wish \fR is reading commands interactively (\fI fileName \fR
145164was not specified and standard input is a terminal-like
146165device), 0 otherwise.
0 commit comments