1 | .\" This file uses -man macros. |
---|
2 | .TH DASH 1 "December 14, 1994" |
---|
3 | .SH NAME |
---|
4 | dash \- Athena Dashboard |
---|
5 | .SH SYNOPSIS |
---|
6 | .TP 5 |
---|
7 | .BR dash |
---|
8 | [-toolkitoption ...] [-menus \fIfile\fR] [-appdefs \fIfile\fR] |
---|
9 | .br |
---|
10 | [-userdefs \fIfile\fR] [\(+-rude] [\(+-verify] [-kill] [-restart] |
---|
11 | .br |
---|
12 | [-run] [-nofork] [-send] [-show \fIoption\fR ... ] |
---|
13 | .br |
---|
14 | [-hide \fIoption\fR ... ] [\(+-options\fR ...] |
---|
15 | |
---|
16 | .SH DESCRIPTION |
---|
17 | By default, \fIdash\fR places a menu bar at the top of the screen which |
---|
18 | contains much useful information on using Athena. Some of the items in |
---|
19 | the menu are merely informational - clicking on the items themselves |
---|
20 | will do nothing, while clicking on the `?' next to them will offer |
---|
21 | information. These items are followed by ellipsis (...) in their name. |
---|
22 | Other items will do things when you click on them, such as "New xterm window" |
---|
23 | under the special menu. These items also offer information if you click |
---|
24 | on their `?'s. Still other items are submenus. They have an arrow next |
---|
25 | to them where other items have `?'s, and clicking on the arrow will |
---|
26 | show more items. New Athena users should find this program massively |
---|
27 | useful for finding things, while more experienced Athena users may still |
---|
28 | like the program because of its customizability. |
---|
29 | .PP |
---|
30 | More generally, \fIdash\fR puts up user-defined widgets on the display |
---|
31 | screen which place much less of a load on the system than their X |
---|
32 | Toolkit or Motif counterparts. |
---|
33 | .I Dash |
---|
34 | can create menus, analog and digital clocks, buttons, icons, and other |
---|
35 | widgets which will be added in the future. Replacing other screen |
---|
36 | accessory programs with \fIdash\fR widgets can significantly increase |
---|
37 | system performance, especially on older systems with less real memory. |
---|
38 | .PP |
---|
39 | .I Dash's |
---|
40 | menu widget is of special note. It allows the user to specify a list of |
---|
41 | desired menu items and their general desired locations, and will |
---|
42 | assemble a menu hierarchy from this description, rather than requiring |
---|
43 | the user to specify a complex hierarchy. See the MENU FORMAT section |
---|
44 | below for details and an example on specifying menu widgets. |
---|
45 | |
---|
46 | .SH TOOLKIT OPTIONS |
---|
47 | .I Dash |
---|
48 | accepts many of the standard X Toolkit command line options: |
---|
49 | .TP |
---|
50 | .B\(+-reverse |
---|
51 | .br |
---|
52 | .ns |
---|
53 | .HP 9 |
---|
54 | .B\(+-rv |
---|
55 | .br |
---|
56 | This option causes |
---|
57 | .I dash |
---|
58 | to come up in reverse video if you specify -rv, normal video if you |
---|
59 | specify +rv (the default). |
---|
60 | .TP |
---|
61 | .B \-background \fIcolor |
---|
62 | .br |
---|
63 | .ns |
---|
64 | .HP 9 |
---|
65 | .B \-bg \fIcolor |
---|
66 | .br |
---|
67 | This option specifies the default background color for all |
---|
68 | .I dash |
---|
69 | widgets. |
---|
70 | .TP |
---|
71 | .B \-bordercolor \fIcolor |
---|
72 | .br |
---|
73 | .ns |
---|
74 | .HP 9 |
---|
75 | .B \-bd \fIcolor |
---|
76 | .br |
---|
77 | This option specifies the default border color for all |
---|
78 | .I dash |
---|
79 | widgets. |
---|
80 | .TP |
---|
81 | .B \-borderwidth \fInumber |
---|
82 | .br |
---|
83 | .ns |
---|
84 | .HP 9 |
---|
85 | .B \-bw \fInumber |
---|
86 | .br |
---|
87 | This option specifies the border width for all |
---|
88 | .I dash |
---|
89 | widgets in pixels. |
---|
90 | .HP 9 |
---|
91 | .B \-display \fIdisplay |
---|
92 | .br |
---|
93 | This option specifies which display |
---|
94 | .I dash |
---|
95 | is to run on. The default is to use the DISPLAY environment variable. |
---|
96 | .TP 9 |
---|
97 | .B \-foreground \fIcolor |
---|
98 | .br |
---|
99 | .ns |
---|
100 | .HP 9 |
---|
101 | .B \-fg \fIcolor |
---|
102 | .br |
---|
103 | This option specifies the default foreground color for all |
---|
104 | .I dash |
---|
105 | widgets. |
---|
106 | .TP |
---|
107 | .B \-font \fIfontname |
---|
108 | .br |
---|
109 | .ns |
---|
110 | .HP 9 |
---|
111 | .B \-fn \fIfontname |
---|
112 | .br |
---|
113 | This option specifies the default font for labels on |
---|
114 | .I dash |
---|
115 | menus and buttons. |
---|
116 | .HP 9 |
---|
117 | .B \-name \fIstring |
---|
118 | .br |
---|
119 | This option specifies the application name under which resources are to |
---|
120 | be obtained, rather than the default executable file name. |
---|
121 | .I String |
---|
122 | should not contain ``.'' or ``*'' characters. |
---|
123 | .HP 9 |
---|
124 | .B \-xrm \fIresourcestring |
---|
125 | .br |
---|
126 | This option specifies a resource string to be used. This is especially |
---|
127 | useful for setting resources that do not have separate command line |
---|
128 | options. See \fIX\fR(1). |
---|
129 | .SH DASH OPTIONS |
---|
130 | \fIDash\fR accepts the following additional options: |
---|
131 | .TP 9 |
---|
132 | .B \-appdefs \fIfile |
---|
133 | This option specifies a file to use for the application default |
---|
134 | resources instead of the default /usr/athena/lib/X11/app-defaults/Dash. |
---|
135 | .TP 9 |
---|
136 | .B \-userdefs \fIfile |
---|
137 | This option specifies a file to use for the user default resources |
---|
138 | instead of the default ~/.dashrc. |
---|
139 | .TP 9 |
---|
140 | .B \-menus \fImenufile |
---|
141 | This option causes |
---|
142 | .I dash |
---|
143 | to read menu entries from |
---|
144 | .I menufile |
---|
145 | instead of the default menus file listed in the "*Menu.file" resource. |
---|
146 | If more specific menu file resources are specifed, they will not be |
---|
147 | overriden by this option. |
---|
148 | .TP 9 |
---|
149 | .B\(+-rude |
---|
150 | Specifies whether or not \fIdash\fR grabs the mouse pointer whenever one |
---|
151 | of its menus is opened. \fI-rude\fR causes the pointer to be grabbed |
---|
152 | and is the default. \fI+rude\fR leaves the pointer free while menus are |
---|
153 | open; this allows to you work in other windows without closing |
---|
154 | \fIdash\fR menus first. |
---|
155 | .TP 9 |
---|
156 | .B\(+-verify |
---|
157 | Specifies whether or not \fIdash\fR attempts to verify all menu-selected |
---|
158 | actions (i.e. callbacks) by popping up a dialog box which asks the user |
---|
159 | to confirm or cancel the action. \fI+verify\fR will cause \fIdash\fR to |
---|
160 | turn off verification for all menu item callbacks. \fI-verify\fR will |
---|
161 | cause dash to verify any menu item callback. Menu items configured with |
---|
162 | the \fI-verify\fR field (see MENU FORMAT) are never verified regardless |
---|
163 | of this resource. Note that \fI-verify\fR as a command line option |
---|
164 | turns verification on for all items, while \fI-verify\fR in a menu |
---|
165 | configuration will turn verification off for a specific item and |
---|
166 | override the command line option. Yes, this is confusing, but Unix and |
---|
167 | toolkit conventions dictate the meaning of the + and - command line |
---|
168 | options. |
---|
169 | .PP |
---|
170 | .ne 2.5i |
---|
171 | By default, typing "dash" causes \fIdash\fR to start up showing a menu |
---|
172 | bar. However, if there is already a \fIdash\fR running, it will tell |
---|
173 | that one to display a menu bar instead. The following options can be |
---|
174 | used to specify whether such messages are sent, or what messages should |
---|
175 | be sent. |
---|
176 | .TP 9 |
---|
177 | .B \-nofork |
---|
178 | By default, dash will fork itself and detach from the terminal it was |
---|
179 | started it, so that it does not need to be backgrounded. Using -nofork |
---|
180 | will cause dash to not fork and remain in the foreground. |
---|
181 | .TP 9 |
---|
182 | .B \-kill |
---|
183 | This sends a signal to the currently running \fIdash\fR telling it to exit. |
---|
184 | .TP 9 |
---|
185 | .B \-restart |
---|
186 | This is the same as -kill, except that after sending the kill it continues |
---|
187 | to run, and becomes the currently running \fIdash\fR. This is useful if |
---|
188 | you want \fIdash\fR to be running with resources you have just changed. |
---|
189 | .TP 9 |
---|
190 | .B \-send |
---|
191 | \fIDash\fR usually checks to see of there is already a \fIdash\fR running. |
---|
192 | If so, it sends a signal. If not, it starts on its own. The -send option |
---|
193 | specifies that \fIdash\fR should only send signals. If there is no |
---|
194 | \fIdash\fR running, one should not be started. |
---|
195 | .TP 9 |
---|
196 | .B \-run |
---|
197 | This option tells \fIdash\fR to ignore any other \fIdash\fR's that may |
---|
198 | already be running, and start up no matter what. |
---|
199 | .TP |
---|
200 | .B \-hide \fIoption\fR ... |
---|
201 | .br |
---|
202 | .ns |
---|
203 | .TP |
---|
204 | .B \-show \fIoption\fR ... |
---|
205 | .br |
---|
206 | .ns |
---|
207 | .HP 9 |
---|
208 | .B\(+-\fIoption\fR ... |
---|
209 | .br |
---|
210 | These options are the reason that \fIdash\fR's signal sending ability |
---|
211 | exists. With them, you may tell an already running \fIdash\fR to hide |
---|
212 | or show objects that it is or isn't showing. This is good, because if |
---|
213 | \fIdash\fR were started as a logout button, and you wanted it also to |
---|
214 | be a menu bar, you might just start up a second invocation of |
---|
215 | \fIdash\fR, consuming more workstation memory. Instead, you can tell |
---|
216 | the \fIdash\fR that is already running to do display the menu bar, and |
---|
217 | save resources. For example, "dash -show clock" will send a signal to |
---|
218 | an already running \fIdash\fR to create a clock. If no dash is already |
---|
219 | running, it will start a new dash running the clock instead. |
---|
220 | Similarly, "dash -hide clock" will cause an already running dash to |
---|
221 | hide its clock, if one was showing. |
---|
222 | |
---|
223 | "dash -clock" is equivalent to "dash -show clock," while "dash +clock" |
---|
224 | is the same as "dash -hide clock." \fIOption\fR may be any of: |
---|
225 | default, user, athena, menubar, logout, clock. "default" is equivalent |
---|
226 | to "athena user," and "athena" is equivalent to "menubar." Invoking |
---|
227 | \fIdash\fR without any of these options is equivalent to invoking it |
---|
228 | with "-default" or "-show default". Thus, if there is \fIdash\fR |
---|
229 | running as only a logout button, simply typing "dash" will cause it to |
---|
230 | display a menu bar as well. |
---|
231 | |
---|
232 | .SH "RESOURCES" |
---|
233 | .PP |
---|
234 | .I Dash |
---|
235 | understands many, although not all, of the core X Toolkit resources (see |
---|
236 | \fIX\fR(1)) and many additions which will be documented in the near |
---|
237 | future. For now these resources which significantly affect \fIdash's\fR |
---|
238 | behavior are listed for reference: |
---|
239 | |
---|
240 | .TP 9 |
---|
241 | .B overrideRedirect |
---|
242 | Specifies whether windows created by \fIdash\fR are created with |
---|
243 | override redirect set. Most window managers will not decorate or allow |
---|
244 | the user to drag around windows with this set. Override redirect is set |
---|
245 | by default on \fIdash\fR's menu bar, but not on any of the rest if its |
---|
246 | windows. If you wish to try it without this set, try specifying |
---|
247 | "*menuTree.window.overrideRedirect: False" in resources. |
---|
248 | |
---|
249 | .TP 9 |
---|
250 | .B rude |
---|
251 | Specifies whether \fIdash\fR keeps the mouse grabbed when one of its |
---|
252 | menus is opened. The default is "True". Specfiying "dash*rude:False" |
---|
253 | will allow you for example to click away zephyrgrams while leaving a |
---|
254 | menu open. |
---|
255 | |
---|
256 | .TP 9 |
---|
257 | .B verify |
---|
258 | Specifies whether menu item callbacks are executed with or without a |
---|
259 | popup verification window first. Default is "True". Menu items |
---|
260 | configured with the \fI-verify\fR field (see MENU FORMAT) are never |
---|
261 | verified regardless of this resource. |
---|
262 | |
---|
263 | .TP 9 |
---|
264 | .B autoRaise |
---|
265 | Specifies whether a \fIdash\fR menu widget will automatically be brought |
---|
266 | to the front of the screen whenever the mouse enters it. When "False", |
---|
267 | the user must click in the menubar in order to get it to raise itself. |
---|
268 | Default is "False". |
---|
269 | |
---|
270 | |
---|
271 | .SH DASH WIDGETS |
---|
272 | .PP |
---|
273 | The widgets which \fIdash\fR can create are still growing, and could use |
---|
274 | extensive documentation of their own in the future. Especially |
---|
275 | important are the \fITree\fR widget and \fIForm\fR widget, which are |
---|
276 | used to create other widgets in and organized manner. Until extensive |
---|
277 | documentation is available, an example of correct use of trees and forms |
---|
278 | can be found in /usr/athena/lib/X11/app-defaults/Dash, which creates a small |
---|
279 | tree of widgets and includes several which are commented out for |
---|
280 | reference. |
---|
281 | .PP |
---|
282 | The list of currently available widgets is: Tree, Form, Window, |
---|
283 | DigitalClock, AnalogClock, Menu, Icon, Button, Label, NULL. |
---|
284 | |
---|
285 | .SH "MENU FORMAT" |
---|
286 | .PP |
---|
287 | .I Dash |
---|
288 | has a unique menu format which allows one to create lists of menus and |
---|
289 | menu items and allow |
---|
290 | .I dash |
---|
291 | to assemble them in the appropriate hierarchy. The same item can appear |
---|
292 | in more than one menu. Items can have both help panels which provide |
---|
293 | information upon selection, and callbacks which perform actions upon |
---|
294 | selection. |
---|
295 | .PP |
---|
296 | The format of a menu file consists of entries each terminated with a ';' |
---|
297 | character, and each containing one or more of the following fields. |
---|
298 | Multiple entries and fields may exist for the same object -- subsequent |
---|
299 | definitions of individual fields will override previous ones. |
---|
300 | |
---|
301 | .TP 9 |
---|
302 | .B menu \fIname: |
---|
303 | \fIName\fR will be created as a menu or submenu, and may have menus or |
---|
304 | items under it in the final menu hierarchy. A \fImenu\fR entry should |
---|
305 | also have a \fIlabel\fR, a \fIparent\fR, and a \fIchild\fR defined (see |
---|
306 | below). |
---|
307 | .TP 9 |
---|
308 | .B item \fIname: |
---|
309 | \fIName\fR will be created as an item which goes onto one or more menus, |
---|
310 | and may have help associated with it. An \fIitem\fR entry should also |
---|
311 | have a \fIlabel\fR and a \fIparent\fR defined. |
---|
312 | |
---|
313 | .TP 9 |
---|
314 | .B help \fIname: |
---|
315 | If \fIitem name\fR exists, a help entry for it will be created which |
---|
316 | will appear next to \fIname\fR on any menus on the screen. If the help |
---|
317 | entry rather than the item is selected, the helptext (see below) will |
---|
318 | appear in a window next to the menu on the screen. |
---|
319 | |
---|
320 | .TP 9 |
---|
321 | .B "\fIlabel\fR" |
---|
322 | Used with a \fImenu\fR or \fIitem\fR (see above) entry, specifies what |
---|
323 | label the menu or item will be given on the screen. |
---|
324 | |
---|
325 | .TP 9 |
---|
326 | .B "\fIhelptext\fR" |
---|
327 | Used with a \fIhelp\fR entry, specifies what help text will appear when |
---|
328 | the help entry is selected. |
---|
329 | |
---|
330 | .TP 9 |
---|
331 | .B [\fIparent, parent ...\fR ][\fIparent ...\fR] |
---|
332 | Used with a \fImenu\fR or \fIitem\fR entry, specifies what menus are |
---|
333 | allowed to be parents of the entry in the hierarchy. The entry will |
---|
334 | become a child of the first available parent specified in each set of |
---|
335 | brackets (see example below). A [NULL] parent specifes that the entry |
---|
336 | should be at the top level of the menu hierarchy. If no parents are |
---|
337 | specifed for the entry, it will not appear on the screen. A maximum of |
---|
338 | five to ten types of parents may be specified. |
---|
339 | |
---|
340 | .TP 9 |
---|
341 | .B {\fIchildren, ...\fR} |
---|
342 | Used with a \fImenu\fR or \fIitem\fR entry, specifies what menus or |
---|
343 | items are allowed to be children of the entry in the hierarchy. If no |
---|
344 | entries have \fIparent\fR fields which match, the entry will not appear |
---|
345 | on the screen. A maximum of five types of children may be specified. |
---|
346 | |
---|
347 | .TP 9 |
---|
348 | .B \fIcallback\fR(),... |
---|
349 | Used with an \fIitem\fR entry, specifies a callback or callbacks to be |
---|
350 | called when the entry is selected. If no callbacks are specified, |
---|
351 | nothing will happen when the entry is selected. See CALLBACKS below. |
---|
352 | |
---|
353 | .TP 9 |
---|
354 | .B \-h |
---|
355 | Used with a \fImenu\fR entry, specifies that this menu is to be |
---|
356 | displayed horizontally on the screen. |
---|
357 | |
---|
358 | .TP 9 |
---|
359 | .B \-v |
---|
360 | Used with a \fImenu\fR entry, specifies that this menu is to be |
---|
361 | displayed vertically on the screen. This is the default. |
---|
362 | |
---|
363 | .TP 9 |
---|
364 | .B\(+-verify |
---|
365 | Used with an \fIitem\fR entry, specifies whether this item should or |
---|
366 | should not try to verify its selection by popping up a dialog box on the |
---|
367 | screen, which is the default. |
---|
368 | |
---|
369 | .TP |
---|
370 | .B\(+-sgi |
---|
371 | .br |
---|
372 | .ns |
---|
373 | .TP |
---|
374 | .B\(+-sun4 |
---|
375 | .br |
---|
376 | .ns |
---|
377 | .TP |
---|
378 | .B\(+-linux |
---|
379 | .br |
---|
380 | .ns |
---|
381 | .TP |
---|
382 | .B\(+-decmips |
---|
383 | .br |
---|
384 | .ns |
---|
385 | .TP |
---|
386 | .B\(+-rsaix |
---|
387 | .br |
---|
388 | .ns |
---|
389 | .TP |
---|
390 | .B\(+-rt |
---|
391 | .br |
---|
392 | .ns |
---|
393 | .HP 9 |
---|
394 | .B\(+-vax |
---|
395 | .br |
---|
396 | Used with an \fIitem\fR entry, specifies that this item is or is not |
---|
397 | available specifically on specified workstation platforms. |
---|
398 | Default is + for all platforms. If an \fIitem\fR is specified as |
---|
399 | not available for the platform on which \fIdash\fR is running, it will |
---|
400 | appear dimmed on the screen. |
---|
401 | |
---|
402 | .SH CALLBACKS |
---|
403 | .PP |
---|
404 | The following callbacks are available for binding to \fIitems\fR (see above). |
---|
405 | Arguments should be strings enclosed in double quotes. |
---|
406 | |
---|
407 | .TP 9 |
---|
408 | .B createTree(\fItreename\fR) |
---|
409 | Creates a tree of widgets named \fItreename\fR. |
---|
410 | |
---|
411 | .TP 9 |
---|
412 | .B createMapTree(\fItreename\fR) |
---|
413 | Creates a tree of widgets named \fItreename\fR if one does not already exist, |
---|
414 | or maps it if it does. |
---|
415 | |
---|
416 | .TP 9 |
---|
417 | .B destroyTree(\fItreename\fR) |
---|
418 | Destroys the first tree with name \fItreename\fR created by |
---|
419 | \fIcreate(Map)Tree\fR that it finds. |
---|
420 | |
---|
421 | .TP 9 |
---|
422 | .B quit() |
---|
423 | Causes \fIdash\fR to exit. |
---|
424 | |
---|
425 | .TP 9 |
---|
426 | .B toggleHelp(\fIlabel\fR) |
---|
427 | Causes \fIdash\fR to toggle whether or not help entries are displayed, |
---|
428 | and to replace the label of the calling item with \fIlabel\fR. Entries |
---|
429 | which use this callback must also specify \fI-verify\fR (see above). |
---|
430 | |
---|
431 | .TP 9 |
---|
432 | .B toggleVerify(\fIlabel\fR) |
---|
433 | Causes \fIdash\fR to toggle whether or not callbacks for all items are |
---|
434 | verified with a popup dialog box, and to replace the label of the |
---|
435 | calling item with \fIlabel\fR. Entries which use this callback must |
---|
436 | also specify \fI-verify\fR (see above). |
---|
437 | |
---|
438 | .TP 9 |
---|
439 | .B logout() |
---|
440 | Causes \fIdash\fR to log the user out. |
---|
441 | |
---|
442 | .TP 9 |
---|
443 | .B mapTree(\fItreename\fR) |
---|
444 | Causes the widget tree named \fItreename\fR created by \fIcreateTree\fR |
---|
445 | to be visible on the screen. |
---|
446 | |
---|
447 | .TP 9 |
---|
448 | .B unmapTree(\fItreename\fR) |
---|
449 | Causes the widget tree named \fItreename\fR created by \fIcreateTree\fR |
---|
450 | to disappear from the screen. |
---|
451 | |
---|
452 | .TP 9 |
---|
453 | .B printMenu() |
---|
454 | Causes \fIdash\fR to print out the current assembled menu hierarchy for |
---|
455 | the menu tree of which the calling entry is a member. Entries which use |
---|
456 | this callback must also specify \fI-verify\fR (see above). |
---|
457 | |
---|
458 | .TP 9 |
---|
459 | .B sh(\fIcommand\fR) |
---|
460 | Causes \fIdash\fR to fork and execute a Bourne shell with the command |
---|
461 | line \fIcommand\fR. See \fIsh\fR(1). |
---|
462 | |
---|
463 | .TP 9 |
---|
464 | .B exec(\fIcommand\fR) |
---|
465 | Causes \fIdash\fR to fork and execute \fIcommand\fR. In the string |
---|
466 | passed to exec, ~ will be interpreted from the HOME environment |
---|
467 | variable. %M will be expanded to one of vax, rt, decmips, rsaix, sun4, |
---|
468 | or sgi as appropriate (the return value of \fImachtype\fR in the Athena |
---|
469 | environment, compiled into \fIdash\fR directly). %S will be expanded to |
---|
470 | values such as pmax_ul4, sgi_52, etc. (the return value of AFS's \fIfs\fR |
---|
471 | sysname, or @sys value) as determined by the environment variable |
---|
472 | ATHENA_SYS. Finally, %B, when used as part of a full path |
---|
473 | specification (such as "/mit/lockername/%B/program") will expand to |
---|
474 | "arch/%S/bin" if that directory exists under /mit/lockername, or else |
---|
475 | fall back to "%Mbin". See \fIlockers\fR(7) and \fIadd\fR(1) for more |
---|
476 | details on this behavior. |
---|
477 | |
---|
478 | .TP 9 |
---|
479 | .B cd(\fIdirectory\fR) |
---|
480 | Causes \fIdash\fR to make the working directory for the next \fIexec\fR |
---|
481 | callback \fIdirectory\fR. \fIDirectory\fR may contain %M. |
---|
482 | |
---|
483 | .TP 9 |
---|
484 | .B attach(\fIfilesystem\fR) |
---|
485 | Causes \fIdash\fR to attach \fIfilesystem\fR. See \fIattach\fR(1). |
---|
486 | |
---|
487 | .TP 9 |
---|
488 | .B add(\fIfilesystem\fR) |
---|
489 | Causes \fIdash\fR to "add" \fIfilesystem\fR, which means that |
---|
490 | \fIfilesystem\fR is attached, and \fIfilesystem\fR/%B is added to the |
---|
491 | directory search path for the next \fIexec\fR callback. |
---|
492 | |
---|
493 | .TP 9 |
---|
494 | .B setup(\fIfilesystem\fR) |
---|
495 | Causes \fIdash\fR to attach \fIfilesystem\fR and set the environment |
---|
496 | variable SUBJECT to \fIfilesystem\fR for the next \fIexec\fR call. To |
---|
497 | implement the equivalent of the \fIsetup\fR command with this, try using something like: |
---|
498 | |
---|
499 | setup("16.00"),exec("xterm -n Todor") |
---|
500 | |
---|
501 | .TP 9 |
---|
502 | .B addMenus(\fIfilename\fR) |
---|
503 | Causes \fIdash\fR to open \fIfilename\fR and add its contents to the |
---|
504 | menu hierarchy of the calling item. Entries which use this callback |
---|
505 | must also specify \fI-verify\fR (see above). \fIFilename\fR should have |
---|
506 | an entry specifying that the menu item responsible for loading it become |
---|
507 | -vax -rt -decmips, to prevent the user from trying to add it again. |
---|
508 | |
---|
509 | .TP 9 |
---|
510 | .B restart(\fIcommand\fR) |
---|
511 | With no arguments, causes \fIdash\fR to reread its configuration and |
---|
512 | restart. With an argument, causes \fIdash\fR to exit and exec |
---|
513 | \fIcommand\fR instead. \fIRestart\fR may contain %M. |
---|
514 | |
---|
515 | |
---|
516 | .SH EXAMPLES |
---|
517 | .PP |
---|
518 | The file /usr/athena/lib/X11/app-defaults/Dash provides perhaps the best known |
---|
519 | working examples of working \fIdash\fR configuration resources. In |
---|
520 | particular, the basic structure of trees and forms, not documented here, |
---|
521 | can be gleaned by examining the beginning of the file. |
---|
522 | .PP |
---|
523 | The file /usr/athena/lib/Dash.menus contains an extensive listing good |
---|
524 | working menu format sample. The following sample menu file demonstrates |
---|
525 | most of the features of the menu syntax as a user might wish to use to |
---|
526 | add to the Athena default: |
---|
527 | |
---|
528 | .br |
---|
529 | .br |
---|
530 | menu top: "top" {topthings} [NULL] +h; |
---|
531 | .br |
---|
532 | menu toys: "toys" [topthings/10] {toythings} ; |
---|
533 | .br |
---|
534 | menu work: "work" [topthings/10] {workthings} ; |
---|
535 | .br |
---|
536 | menu gnu: "GNU" [topthings/10] {gnuthings} ; |
---|
537 | .br |
---|
538 | item quit: "Quit" [topthings/15] quit() -verify ; |
---|
539 | .br |
---|
540 | item tetris: "tetris" [toythings] add("games"),exec("Tetris") ; |
---|
541 | .br |
---|
542 | item xchess: "chess" [toythings][gnuthings] add("gnu"),exec("xchess") ; |
---|
543 | .br |
---|
544 | item gdb: "debugger" [workthings][gnuthings] add("gnu"),exec("xterm -e gdb"); |
---|
545 | .br |
---|
546 | item emacs: "emacs" [workthings,gnuthings] exec("emacs") -verify; |
---|
547 | .br |
---|
548 | help tetris: |
---|
549 | .br |
---|
550 | "You'd better not have any work to do |
---|
551 | .br |
---|
552 | if you're going to play this thing."; |
---|
553 | .br |
---|
554 | help tetris: |
---|
555 | "Ignore previous warning -- PLAY!"; |
---|
556 | .br |
---|
557 | item xchess: -decmips; |
---|
558 | .br |
---|
559 | help quit: |
---|
560 | .br |
---|
561 | "Bye!"; |
---|
562 | |
---|
563 | .SH "FILES" |
---|
564 | .PP |
---|
565 | /usr/athena/bin/dash dash |
---|
566 | .br |
---|
567 | /usr/athena/lib/X11/app-defaults/Dash application defaults |
---|
568 | .br |
---|
569 | ~/.dashrc user defaults |
---|
570 | .br |
---|
571 | /usr/athena/lib/Dash.menus Athena default menus |
---|
572 | |
---|
573 | .SH SEE ALSO |
---|
574 | X(1), add(1), lockers(7), machtype(1), fs(1) |
---|
575 | |
---|
576 | .SH "BUGS" |
---|
577 | .PP |
---|
578 | Some things don't interpret ~, %M, %S, and %B that probably should. |
---|
579 | |
---|
580 | Quotes may not be passed in callback strings. |
---|
581 | |
---|
582 | Attempting to place menu bars other than at +0+0 causes the program to |
---|
583 | get confused when submenus try to go off the side of the screen. |
---|
584 | |
---|
585 | .SH AUTHORS |
---|
586 | Craig Fields, Paul Boutin, and Chris VanHaren, MIT Project Athena |
---|
587 | .br |
---|
588 | Copyright (c) 1990,1991 Massachusetts Institute of Technology |
---|