1 |
578 |
markom |
|
2 |
|
|
|
3 |
|
|
|
4 |
|
|
<TITLE>tixwish - Windowing shell for interpreting Tix commands.</TITLE>
|
5 |
|
|
<Center><H2>tixwish - Windowing shell for interpreting Tix commands.</H2></Center><hr>
|
6 |
|
|
|
7 |
|
|
</pre><H3>SYNOPSIS</H3>
|
8 |
|
|
<B>tixwish</B></I> ?<I>fileName arg arg ...</I></B>?
|
9 |
|
|
</pre><H3>OPTIONS</H3>
|
10 |
|
|
<UL>
|
11 |
|
|
<B>-display <I>display</I></B> <BR>
|
12 |
|
|
Display (and screen) on which to display window.
|
13 |
|
|
</UL>
|
14 |
|
|
<UL>
|
15 |
|
|
<B>-geometry <I>geometry</I></B> <BR>
|
16 |
|
|
Initial geometry to use for window. If this option is specified, its
|
17 |
|
|
Tcl interpreter.
|
18 |
|
|
</UL>
|
19 |
|
|
<UL>
|
20 |
|
|
<B>-name <I>name</I></B> <BR>
|
21 |
|
|
Use <I>name</I></B> as the title to be displayed in the window, and
|
22 |
|
|
as the name of the interpreter for <B>send</B></I> commands.
|
23 |
|
|
</UL>
|
24 |
|
|
<UL>
|
25 |
|
|
<B>-sync</B></I> <BR>
|
26 |
|
|
Execute all X server commands synchronously, so that errors are
|
27 |
|
|
reported immediately. This will result in much slower execution, but
|
28 |
|
|
it is useful for debugging.
|
29 |
|
|
</UL>
|
30 |
|
|
</pre><HR>
|
31 |
|
|
|
32 |
|
|
</pre><H3>DESCRIPTION</H3>
|
33 |
|
|
<P>
|
34 |
|
|
<B>Tixwish</B></I> is a simple program consisting of the Tcl command
|
35 |
|
|
language, the Tk toolkit, and a main program that reads commands from
|
36 |
|
|
standard input or from a file. It creates a main window and then
|
37 |
|
|
processes Tcl commands.
|
38 |
|
|
If <B>tixwish</B></I> is invoked with no arguments, or with a first
|
39 |
|
|
interactively from standard input.
|
40 |
|
|
It will continue processing commands until all windows have been
|
41 |
|
|
deleted or until end-of-file is reached on standard input. If there
|
42 |
|
|
exists a file <B>.tixwishrc</B></I> in the home directory of the user,
|
43 |
|
|
<B>tixwish</B></I> evaluates the file as a Tcl script just before reading
|
44 |
|
|
the first command from standard input.
|
45 |
|
|
<P>
|
46 |
|
|
If <B>tixwish</B></I> is invoked with an initial <I>fileName</I></B> argument,
|
47 |
|
|
then <I>fileName</I></B> is treated as the name of a script file.
|
48 |
|
|
<B>Tixwish</B></I> will evaluate the script in <I>fileName</I></B> (which
|
49 |
|
|
presumably creates a user interface), then it will respond to events
|
50 |
|
|
until all windows have been deleted. Commands will not be read from
|
51 |
|
|
standard input. There is no automatic evaluation of <B>.tixwishrc</B></I>
|
52 |
|
|
in this case, but the script file can always <B>source</B></I> it if
|
53 |
|
|
desired.
|
54 |
|
|
|
55 |
|
|
</pre><H3>OPTIONS</H3>
|
56 |
|
|
<P>
|
57 |
|
|
<B>Tixwish</B></I> automatically processes all of the command-line options
|
58 |
|
|
described in the <B>OPTIONS</B></I> summary above. Any other command-line
|
59 |
|
|
arguments besides these are passed through to the application using
|
60 |
|
|
the <B>argc</B></I> and <B>argv</B></I> variables described later.
|
61 |
|
|
|
62 |
|
|
</pre><H3>APPLICATION NAME AND CLASS</H3>
|
63 |
|
|
<P>
|
64 |
|
|
The name of the application, which is used for purposes such as
|
65 |
|
|
<B>send</B></I> commands, is taken from the <B>-name</B></I> option,
|
66 |
|
|
if it is specified; otherwise it is taken from <I>fileName</I></B>,
|
67 |
|
|
if it is specified, or from the command name by which
|
68 |
|
|
character, then only the characters after the last slash are used
|
69 |
|
|
as the application name.
|
70 |
|
|
<P>
|
71 |
|
|
The class of the application, which is used for purposes such as
|
72 |
|
|
specifying options with a <B>RESOURCE_MANAGER</B></I> property or .Xdefaults
|
73 |
|
|
file, is the same as its name except that the first letter is
|
74 |
|
|
capitalized.
|
75 |
|
|
|
76 |
|
|
</pre><H3>VARIABLES</H3>
|
77 |
|
|
<P>
|
78 |
|
|
<B>Tixwish</B></I> sets the following Tcl variables:
|
79 |
|
|
<DL>
|
80 |
|
|
<DT> <B>argc</B></I>
|
81 |
|
|
</I></B>
|
82 |
|
|
<DD> Contains a count of the number of <I>arg</I></B> arguments (0 if none),
|
83 |
|
|
not including the options described above.
|
84 |
|
|
</DL>
|
85 |
|
|
<DL>
|
86 |
|
|
<DT> <B>argv</B></I>
|
87 |
|
|
</I></B>
|
88 |
|
|
<DD> Contains a Tcl list whose elements are the <I>arg</I></B> arguments (not
|
89 |
|
|
including the options described above), in order, or an empty string
|
90 |
|
|
if there are no <I>arg</I></B> arguments.
|
91 |
|
|
</DL>
|
92 |
|
|
<DL>
|
93 |
|
|
<DT> <B>argv0</B></I>
|
94 |
|
|
</I></B>
|
95 |
|
|
<DD> Contains <I>fileName</I></B> if it was specified.
|
96 |
|
|
Otherwise, contains the name by which <B>tixwish</B></I> was invoked.
|
97 |
|
|
</DL>
|
98 |
|
|
<DL>
|
99 |
|
|
<DT> <B>geometry</B></I>
|
100 |
|
|
</I></B>
|
101 |
|
|
<DD> If the <B>-geometry</B></I> option is specified, <B>tixwish</B></I> copies its
|
102 |
|
|
value into this variable. If the variable still exists after
|
103 |
|
|
<I>fileName</I></B> has been evaluated, <B>tixwish</B></I> uses the value of
|
104 |
|
|
the variable in a <B>wm geometry</B></I> command to set the main
|
105 |
|
|
</DL>
|
106 |
|
|
<DL>
|
107 |
|
|
<DT> <B>tcl_interactive</B></I>
|
108 |
|
|
</I></B>
|
109 |
|
|
<DD> Contains 1 if <B>tixwish</B></I> is reading commands interactively
|
110 |
|
|
(<B>fileName</B></I> was not specified and standard input is a
|
111 |
|
|
terminal-like device), 0 otherwise.
|
112 |
|
|
</DL>
|
113 |
|
|
</pre><H3>X RESOURCES</H3>
|
114 |
|
|
<B>Tixwish</B></I> makes use of several X Resources to determine the
|
115 |
|
|
<B>Toolkit Options</B></I> for the Tix library. These X resources must be
|
116 |
|
|
set using <B>RESOURCE_MANAGER</B></I> properties or .Xdefaults files
|
117 |
|
|
<B>before</B></I> <B>tixwish</B></I> starts running. These resources must be
|
118 |
|
|
associated with the main window of the <B>tixwish</B></I> application.
|
119 |
|
|
These options include:
|
120 |
|
|
<P>
|
121 |
|
|
<pre><code><code><code>
|
122 |
|
|
Name: <B>tixScheme</B></I>
|
123 |
|
|
Class: <B>TixScheme</B></I>
|
124 |
|
|
</code></code></code></pre>
|
125 |
|
|
<UL>
|
126 |
|
|
Specifies the color scheme to use for the Tix application. Currently
|
127 |
|
|
only these schemes are supported: Blue, Gray, SGIGray, TixGray, and
|
128 |
|
|
TK.
|
129 |
|
|
</UL>
|
130 |
|
|
<P>
|
131 |
|
|
<pre><code><code><code>
|
132 |
|
|
Name: <B>tixFontSet</B></I>
|
133 |
|
|
Class: <B>TixFontSet</B></I>
|
134 |
|
|
</code></code></code></pre>
|
135 |
|
|
<UL>
|
136 |
|
|
Specifies the FontSet to use for the Tix application. A FontSet
|
137 |
|
|
designates the fonts to use for different types of widgets. Currently
|
138 |
|
|
only these FontSets are supported: 12Point, 14Point and TK.
|
139 |
|
|
</UL>
|
140 |
|
|
<P>
|
141 |
|
|
For example, you may put these two lines in your .Xdefaults file
|
142 |
|
|
<pre><code><code><code>
|
143 |
|
|
*tixwish.tixScheme: Gray
|
144 |
|
|
*tixwish.tixFontSet: 12Point
|
145 |
|
|
</code></code></code></pre>
|
146 |
|
|
</pre><H3>SCRIPT FILES</H3>
|
147 |
|
|
<P>
|
148 |
|
|
If you create a Tcl script in a file whose first line is
|
149 |
|
|
<pre>
|
150 |
|
|
<B>#!/usr/local/bin/tixwish</B></I>
|
151 |
|
|
</pre>
|
152 |
|
|
then you can invoke the script file directly from your shell if you
|
153 |
|
|
mark it as executable. This assumes that <B>tixwish</B></I> has been
|
154 |
|
|
Many UNIX systems do not allow the <B>#!</B></I> line to exceed about 30
|
155 |
|
|
characters in length, so be sure that the <B>tixwish</B></I> executable can be
|
156 |
|
|
accessed with a short file name.
|
157 |
|
|
|
158 |
|
|
</pre><H3>PROMPTS</H3>
|
159 |
|
|
<P>
|
160 |
|
|
When <B>tixwish</B></I> is invoked interactively it normally prompts for each
|
161 |
|
|
variables <B>tcl_prompt1</B></I> and <B>tcl_prompt2</B></I>. If variable
|
162 |
|
|
<B>tcl_prompt1</B></I> exists then it must consist of a Tcl script to
|
163 |
|
|
output a prompt; instead of outputting a prompt <B>tixwish</B></I> will
|
164 |
|
|
evaluate the script in <B>tcl_prompt1</B></I>. The variable
|
165 |
|
|
<B>tcl_prompt2</B></I> is used in a similar way when a newline is typed but
|
166 |
|
|
then no prompt is output for incomplete commands.
|
167 |
|
|
|
168 |
|
|
</pre><H3>KEYWORDS</H3>
|
169 |
|
|
shell, wish, Tk, toolkit
|
170 |
|
|
<!Serial 851729152>
|
171 |
|
|
<hr><i>Last modified Fri Jan 17 23:02:37 EST 1997 </i> ---
|
172 |
|
|
<i>Serial 853731308</i>
|