Blame


1 cfa37a7b 2004-04-10 devnull .TH ACME 1
2 cfa37a7b 2004-04-10 devnull .SH NAME
3 cfa37a7b 2004-04-10 devnull acme, win, awd \- interactive text windows
4 cfa37a7b 2004-04-10 devnull .SH SYNOPSIS
5 cfa37a7b 2004-04-10 devnull .B acme
6 cfa37a7b 2004-04-10 devnull [
7 b9771a80 2005-01-30 devnull .B -abr
8 b9771a80 2005-01-30 devnull ]
9 b9771a80 2005-01-30 devnull [
10 cfa37a7b 2004-04-10 devnull .B -f
11 cfa37a7b 2004-04-10 devnull .I varfont
12 cfa37a7b 2004-04-10 devnull ]
13 cfa37a7b 2004-04-10 devnull [
14 cfa37a7b 2004-04-10 devnull .B -F
15 cfa37a7b 2004-04-10 devnull .I fixfont
16 cfa37a7b 2004-04-10 devnull ]
17 cfa37a7b 2004-04-10 devnull [
18 cfa37a7b 2004-04-10 devnull .B -c
19 cfa37a7b 2004-04-10 devnull .I ncol
20 cfa37a7b 2004-04-10 devnull ]
21 cfa37a7b 2004-04-10 devnull [
22 6bcc5ae9 2008-04-17 rsc .B -m
23 6bcc5ae9 2008-04-17 rsc .I mtpt
24 6bcc5ae9 2008-04-17 rsc ]
25 6bcc5ae9 2008-04-17 rsc [
26 cfa37a7b 2004-04-10 devnull .B -l
27 cfa37a7b 2004-04-10 devnull .I file
28 cfa37a7b 2004-04-10 devnull |
29 cfa37a7b 2004-04-10 devnull .I file
30 cfa37a7b 2004-04-10 devnull \&... ]
31 cfa37a7b 2004-04-10 devnull .LP
32 cfa37a7b 2004-04-10 devnull .B win
33 cfa37a7b 2004-04-10 devnull [
34 cfa37a7b 2004-04-10 devnull .I command
35 cfa37a7b 2004-04-10 devnull ]
36 cfa37a7b 2004-04-10 devnull .LP
37 cfa37a7b 2004-04-10 devnull .B awd
38 cfa37a7b 2004-04-10 devnull [
39 cfa37a7b 2004-04-10 devnull .I label
40 cfa37a7b 2004-04-10 devnull ]
41 cfa37a7b 2004-04-10 devnull .SH DESCRIPTION
42 cfa37a7b 2004-04-10 devnull .I Acme
43 cfa37a7b 2004-04-10 devnull manages windows of text that may be edited interactively or by external programs.
44 cfa37a7b 2004-04-10 devnull The interactive interface uses the keyboard and mouse; external programs
45 cfa37a7b 2004-04-10 devnull use a set of files served by
46 cfa37a7b 2004-04-10 devnull .IR acme ;
47 cfa37a7b 2004-04-10 devnull these are discussed in
48 d32deab1 2020-08-16 rsc .MR acme (4) .
49 cfa37a7b 2004-04-10 devnull .PP
50 cfa37a7b 2004-04-10 devnull Any named
51 cfa37a7b 2004-04-10 devnull .I files
52 cfa37a7b 2004-04-10 devnull are read into
53 cfa37a7b 2004-04-10 devnull .I acme
54 cfa37a7b 2004-04-10 devnull windows before
55 cfa37a7b 2004-04-10 devnull .I acme
56 cfa37a7b 2004-04-10 devnull accepts input.
57 cfa37a7b 2004-04-10 devnull With the
58 cfa37a7b 2004-04-10 devnull .B -l
59 cfa37a7b 2004-04-10 devnull option, the state of the entire system is loaded
60 cfa37a7b 2004-04-10 devnull from
61 cfa37a7b 2004-04-10 devnull .IR file ,
62 cfa37a7b 2004-04-10 devnull which should have been created by a
63 cfa37a7b 2004-04-10 devnull .B Dump
64 cfa37a7b 2004-04-10 devnull command (q.v.),
65 cfa37a7b 2004-04-10 devnull and subsequent
66 cfa37a7b 2004-04-10 devnull .I file
67 cfa37a7b 2004-04-10 devnull names are ignored.
68 cfa37a7b 2004-04-10 devnull Plain files display as text; directories display as columnated lists of the
69 cfa37a7b 2004-04-10 devnull names of their components, as in
70 cfa37a7b 2004-04-10 devnull .B "ls -p directory|mc
71 cfa37a7b 2004-04-10 devnull except that the names of subdirectories have a slash appended.
72 cfa37a7b 2004-04-10 devnull .PP
73 cfa37a7b 2004-04-10 devnull The
74 cfa37a7b 2004-04-10 devnull .B -f
75 cfa37a7b 2004-04-10 devnull .RB ( -F )
76 cfa37a7b 2004-04-10 devnull option sets the main font, usually variable-pitch (alternate, usually fixed-pitch);
77 cfa37a7b 2004-04-10 devnull the default is
78 b6372b09 2006-03-20 devnull .B \*9/font/lucsans/euro.8.font
79 cfa37a7b 2004-04-10 devnull .RB ( \&.../lucm/unicode.9.font ).
80 cfa37a7b 2004-04-10 devnull Tab intervals are set to the width of 4 (or the value of
81 cfa37a7b 2004-04-10 devnull .BR $tabstop )
82 cfa37a7b 2004-04-10 devnull numeral zeros in the appropriate font.
83 6bcc5ae9 2008-04-17 rsc .PP
84 6bcc5ae9 2008-04-17 rsc The
85 6bcc5ae9 2008-04-17 rsc .B -m
86 6bcc5ae9 2008-04-17 rsc option instructs
87 6bcc5ae9 2008-04-17 rsc .I acme
88 6bcc5ae9 2008-04-17 rsc to use FUSE (see
89 d32deab1 2020-08-16 rsc .MR 9pfuse (4) )
90 6bcc5ae9 2008-04-17 rsc to mount itself at
91 6bcc5ae9 2008-04-17 rsc .IR mtpt .
92 6bcc5ae9 2008-04-17 rsc (Experimental.)
93 cfa37a7b 2004-04-10 devnull .PP
94 cfa37a7b 2004-04-10 devnull .SS Windows
95 cfa37a7b 2004-04-10 devnull .I Acme
96 cfa37a7b 2004-04-10 devnull windows are in two parts: a one-line
97 cfa37a7b 2004-04-10 devnull .I tag
98 cfa37a7b 2004-04-10 devnull above a multi-line
99 cfa37a7b 2004-04-10 devnull .IR body .
100 cfa37a7b 2004-04-10 devnull The body typically contains an image of a file, as in
101 d32deab1 2020-08-16 rsc .MR sam (1) ,
102 cfa37a7b 2004-04-10 devnull or the output of a
103 cfa37a7b 2004-04-10 devnull program, as in an
104 d32deab1 2020-08-16 rsc .MR rio (1)
105 cfa37a7b 2004-04-10 devnull window.
106 cfa37a7b 2004-04-10 devnull The tag contains a number of
107 cfa37a7b 2004-04-10 devnull blank-separated words, followed by a vertical bar character, followed by anything.
108 cfa37a7b 2004-04-10 devnull The first word is the name of the window, typically the name of the associated
109 cfa37a7b 2004-04-10 devnull file or directory, and the other words are commands available in that window.
110 cfa37a7b 2004-04-10 devnull Any text may be added after the bar; examples are strings to search for or
111 cfa37a7b 2004-04-10 devnull commands to execute in that window.
112 cfa37a7b 2004-04-10 devnull Changes to the text left of the bar will be ignored,
113 cfa37a7b 2004-04-10 devnull unless the result is to change the name of the
114 cfa37a7b 2004-04-10 devnull window.
115 cfa37a7b 2004-04-10 devnull .PP
116 cfa37a7b 2004-04-10 devnull If a window holds a directory, the name (first word of the tag) will end with
117 cfa37a7b 2004-04-10 devnull a slash.
118 cfa37a7b 2004-04-10 devnull .SS Scrolling
119 cfa37a7b 2004-04-10 devnull Each window has a scroll bar to the left of the body.
120 cfa37a7b 2004-04-10 devnull The scroll bar behaves much as in
121 d32deab1 2020-08-16 rsc .MR sam (1)
122 cfa37a7b 2004-04-10 devnull or
123 d32deab1 2020-08-16 rsc .MR rio (1)
124 cfa37a7b 2004-04-10 devnull except that scrolling occurs when the button is pressed, rather than released,
125 cfa37a7b 2004-04-10 devnull and continues
126 cfa37a7b 2004-04-10 devnull as long as the mouse button is held down in the scroll bar.
127 cfa37a7b 2004-04-10 devnull For example, to scroll slowly through a file,
128 cfa37a7b 2004-04-10 devnull hold button 3 down near the top of the scroll bar. Moving the mouse
129 cfa37a7b 2004-04-10 devnull down the scroll bar speeds up the rate of scrolling.
130 a965f2ed 2005-01-10 devnull (The experimental option
131 a965f2ed 2005-01-10 devnull .B -r
132 f264bbcd 2020-01-06 rsc reverses the scrolling behavior of buttons 1 and 3, to behave
133 a965f2ed 2005-01-10 devnull more like
134 d32deab1 2020-08-16 rsc .MR xterm (1) .)
135 cfa37a7b 2004-04-10 devnull .SS Layout
136 cfa37a7b 2004-04-10 devnull .I Acme
137 cfa37a7b 2004-04-10 devnull windows are arranged in columns. By default, it creates two columns when starting;
138 cfa37a7b 2004-04-10 devnull this can be overridden with the
139 cfa37a7b 2004-04-10 devnull .B -c
140 cfa37a7b 2004-04-10 devnull option.
141 cfa37a7b 2004-04-10 devnull Placement is automatic but may be adjusted
142 cfa37a7b 2004-04-10 devnull using the
143 cfa37a7b 2004-04-10 devnull .I layout box
144 cfa37a7b 2004-04-10 devnull in the upper left corner of each window and column.
145 cfa37a7b 2004-04-10 devnull Pressing and holding any mouse button in the box drags
146 cfa37a7b 2004-04-10 devnull the associated window or column.
147 cfa37a7b 2004-04-10 devnull For windows, just
148 cfa37a7b 2004-04-10 devnull clicking in the layout box grows the window in place: button 1
149 cfa37a7b 2004-04-10 devnull grows it a little, button 2 grows it as much as it can, still leaving all other
150 cfa37a7b 2004-04-10 devnull tags in that column visible, and button 3 takes over the column completely,
151 cfa37a7b 2004-04-10 devnull temporarily hiding other windows in the column.
152 cfa37a7b 2004-04-10 devnull (They will return
153 cfa37a7b 2004-04-10 devnull .I en masse
154 cfa37a7b 2004-04-10 devnull if any of them needs attention.)
155 cfa37a7b 2004-04-10 devnull The layout box in a window is normally white; when it is black in the center,
156 cfa37a7b 2004-04-10 devnull it records that the file is `dirty':
157 c8b6342d 2005-01-13 devnull .I acme
158 cfa37a7b 2004-04-10 devnull believes it is modified from its original
159 cfa37a7b 2004-04-10 devnull contents.
160 cfa37a7b 2004-04-10 devnull .PP
161 cfa37a7b 2004-04-10 devnull Tags exist at the top of each column and across the whole display.
162 cfa37a7b 2004-04-10 devnull .I Acme
163 cfa37a7b 2004-04-10 devnull pre-loads them with useful commands.
164 cfa37a7b 2004-04-10 devnull Also, the tag across the top maintains a list of executing long-running commands.
165 cfa37a7b 2004-04-10 devnull .SS Typing
166 cfa37a7b 2004-04-10 devnull The behavior of typed text is similar to that in
167 d32deab1 2020-08-16 rsc .MR rio (1)
168 cfa37a7b 2004-04-10 devnull except that the characters are delivered to the tag or body under the mouse; there is no
169 cfa37a7b 2004-04-10 devnull `click to type'.
170 cfa37a7b 2004-04-10 devnull (The experimental option
171 cfa37a7b 2004-04-10 devnull .B -b
172 cfa37a7b 2004-04-10 devnull causes typing to go to the most recently clicked-at or made window.)
173 cfa37a7b 2004-04-10 devnull The usual backspacing conventions apply.
174 cfa37a7b 2004-04-10 devnull As in
175 d32deab1 2020-08-16 rsc .MR sam (1)
176 cfa37a7b 2004-04-10 devnull but not
177 cfa37a7b 2004-04-10 devnull .IR rio ,
178 cfa37a7b 2004-04-10 devnull the ESC key selects the text typed since the last mouse action,
179 cfa37a7b 2004-04-10 devnull a feature particularly useful when executing commands.
180 cfa37a7b 2004-04-10 devnull A side effect is that typing ESC with text already selected is identical
181 cfa37a7b 2004-04-10 devnull to a
182 cfa37a7b 2004-04-10 devnull .B Cut
183 cfa37a7b 2004-04-10 devnull command
184 cfa37a7b 2004-04-10 devnull .RI ( q.v. ).
185 cfa37a7b 2004-04-10 devnull .PP
186 cfa37a7b 2004-04-10 devnull Most text, including the names of windows, may be edited uniformly.
187 cfa37a7b 2004-04-10 devnull The only exception is that the command names to the
188 cfa37a7b 2004-04-10 devnull left of the bar in a tag are maintained automatically; changes to them are repaired
189 cfa37a7b 2004-04-10 devnull by
190 cfa37a7b 2004-04-10 devnull .IR acme .
191 b9771a80 2005-01-30 devnull .PP
192 b9771a80 2005-01-30 devnull When a window is in autoindent mode
193 b9771a80 2005-01-30 devnull (see the
194 b9771a80 2005-01-30 devnull .B Indent
195 b9771a80 2005-01-30 devnull command below) and a newline character is typed,
196 f264bbcd 2020-01-06 rsc .I acme
197 f264bbcd 2020-01-06 rsc copies leading white space on the current line to the new line,
198 f264bbcd 2020-01-06 rsc and when a window is
199 f264bbcd 2020-01-06 rsc .BR Put ,
200 f264bbcd 2020-01-06 rsc .I acme
201 f264bbcd 2020-01-06 rsc removes all trailing end-of-line white space before writing the file.
202 b9771a80 2005-01-30 devnull The option
203 b9771a80 2005-01-30 devnull .B -a
204 f264bbcd 2020-01-06 rsc causes each window to start in
205 b9771a80 2005-01-30 devnull autoindent mode.
206 cfa37a7b 2004-04-10 devnull .SS "Directory context
207 cfa37a7b 2004-04-10 devnull Each window's tag names a directory: explicitly if the window
208 cfa37a7b 2004-04-10 devnull holds a directory; implicitly if it holds a regular file
209 cfa37a7b 2004-04-10 devnull (e.g. the directory
210 cfa37a7b 2004-04-10 devnull .B /adm
211 cfa37a7b 2004-04-10 devnull if the window holds
212 cfa37a7b 2004-04-10 devnull .BR /adm/users ).
213 cfa37a7b 2004-04-10 devnull This directory provides a
214 cfa37a7b 2004-04-10 devnull .I context
215 cfa37a7b 2004-04-10 devnull for interpreting file names in that window.
216 cfa37a7b 2004-04-10 devnull For example, the string
217 cfa37a7b 2004-04-10 devnull .B users
218 cfa37a7b 2004-04-10 devnull in a window labeled
219 cfa37a7b 2004-04-10 devnull .B /adm/
220 cfa37a7b 2004-04-10 devnull or
221 cfa37a7b 2004-04-10 devnull .B /adm/keys
222 cfa37a7b 2004-04-10 devnull will be interpreted as the file name
223 cfa37a7b 2004-04-10 devnull .BR /adm/users .
224 cfa37a7b 2004-04-10 devnull The directory is defined purely textually, so it can be a non-existent
225 cfa37a7b 2004-04-10 devnull directory or a real directory associated with a non-existent file
226 cfa37a7b 2004-04-10 devnull (e.g.
227 cfa37a7b 2004-04-10 devnull .BR /adm/not-a-file ).
228 cfa37a7b 2004-04-10 devnull File names beginning with a slash
229 cfa37a7b 2004-04-10 devnull are assumed to be absolute file names.
230 cfa37a7b 2004-04-10 devnull .SS Errors
231 cfa37a7b 2004-04-10 devnull Windows whose names begin with
232 cfa37a7b 2004-04-10 devnull .B -
233 cfa37a7b 2004-04-10 devnull or
234 cfa37a7b 2004-04-10 devnull .B +
235 cfa37a7b 2004-04-10 devnull conventionally hold diagnostics and other data
236 cfa37a7b 2004-04-10 devnull not directly associated with files.
237 cfa37a7b 2004-04-10 devnull A window labeled
238 cfa37a7b 2004-04-10 devnull .B +Errors
239 cfa37a7b 2004-04-10 devnull receives all diagnostics produced by
240 cfa37a7b 2004-04-10 devnull .I acme
241 cfa37a7b 2004-04-10 devnull itself.
242 cfa37a7b 2004-04-10 devnull Diagnostics from commands run by
243 cfa37a7b 2004-04-10 devnull .I acme
244 cfa37a7b 2004-04-10 devnull appear in a window named
245 cfa37a7b 2004-04-10 devnull .IB directory /+Errors
246 cfa37a7b 2004-04-10 devnull where
247 cfa37a7b 2004-04-10 devnull .I directory
248 cfa37a7b 2004-04-10 devnull is identified by the context of the command.
249 cfa37a7b 2004-04-10 devnull These error windows are created when needed.
250 cfa37a7b 2004-04-10 devnull .SS "Mouse button 1
251 cfa37a7b 2004-04-10 devnull Mouse button 1 selects text just as in
252 d32deab1 2020-08-16 rsc .MR sam (1)
253 cfa37a7b 2004-04-10 devnull or
254 cfa37a7b 2004-04-10 devnull .IR rio (1) ,
255 cfa37a7b 2004-04-10 devnull including the usual double-clicking conventions.
256 cfa37a7b 2004-04-10 devnull .SS "Mouse button 2
257 cfa37a7b 2004-04-10 devnull By an
258 cfa37a7b 2004-04-10 devnull action similar to selecting text with button 1,
259 cfa37a7b 2004-04-10 devnull button 2 indicates text to execute as a command.
260 cfa37a7b 2004-04-10 devnull If the indicated text has multiple white-space-separated words,
261 cfa37a7b 2004-04-10 devnull the first is the command name and the second and subsequent
262 cfa37a7b 2004-04-10 devnull are its arguments.
263 cfa37a7b 2004-04-10 devnull If button 2 is `clicked'\(emindicates a null string\(em\c
264 cfa37a7b 2004-04-10 devnull .I acme
265 cfa37a7b 2004-04-10 devnull .I expands
266 cfa37a7b 2004-04-10 devnull the indicated text to find a command to run:
267 cfa37a7b 2004-04-10 devnull if the click is within button-1-selected text,
268 cfa37a7b 2004-04-10 devnull .I acme
269 cfa37a7b 2004-04-10 devnull takes that selection as the command;
270 cfa37a7b 2004-04-10 devnull otherwise it takes the largest string of valid file name characters containing the click.
271 cfa37a7b 2004-04-10 devnull Valid file name characters are alphanumerics and
272 cfa37a7b 2004-04-10 devnull .B _
273 cfa37a7b 2004-04-10 devnull .B .
274 cfa37a7b 2004-04-10 devnull .B -
275 cfa37a7b 2004-04-10 devnull .B +
276 cfa37a7b 2004-04-10 devnull .BR / .
277 cfa37a7b 2004-04-10 devnull This behavior is similar to double-clicking with button 1 but,
278 cfa37a7b 2004-04-10 devnull because a null command is meaningless, only a single click is required.
279 cfa37a7b 2004-04-10 devnull .PP
280 cfa37a7b 2004-04-10 devnull Some commands, all by convention starting with a capital letter, are
281 cfa37a7b 2004-04-10 devnull .I built-ins
282 cfa37a7b 2004-04-10 devnull that are executed directly by
283 cfa37a7b 2004-04-10 devnull .IR acme :
284 cfa37a7b 2004-04-10 devnull .TP
285 cfa37a7b 2004-04-10 devnull .B Cut
286 cfa37a7b 2004-04-10 devnull Delete most recently selected text and place in snarf buffer.
287 cfa37a7b 2004-04-10 devnull .TP
288 cfa37a7b 2004-04-10 devnull .B Del
289 cfa37a7b 2004-04-10 devnull Delete window. If window is dirty, instead print a warning; a second
290 cfa37a7b 2004-04-10 devnull .B Del
291 cfa37a7b 2004-04-10 devnull will succeed.
292 cfa37a7b 2004-04-10 devnull .TP
293 cfa37a7b 2004-04-10 devnull .B Delcol
294 cfa37a7b 2004-04-10 devnull Delete column and all its windows, after checking that windows are not dirty.
295 cfa37a7b 2004-04-10 devnull .TP
296 cfa37a7b 2004-04-10 devnull .B Delete
297 cfa37a7b 2004-04-10 devnull Delete window without checking for dirtiness.
298 cfa37a7b 2004-04-10 devnull .TP
299 cfa37a7b 2004-04-10 devnull .B Dump
300 cfa37a7b 2004-04-10 devnull Write the state of
301 cfa37a7b 2004-04-10 devnull .I acme
302 cfa37a7b 2004-04-10 devnull to the file name, if specified, or
303 bfe4377e 2020-05-19 rsc .B $HOME/acme.dump
304 cfa37a7b 2004-04-10 devnull by default.
305 cfa37a7b 2004-04-10 devnull .TP
306 cfa37a7b 2004-04-10 devnull .B Edit
307 cfa37a7b 2004-04-10 devnull Treat the argument as a text editing command in the style of
308 d32deab1 2020-08-16 rsc .MR sam (1) .
309 cfa37a7b 2004-04-10 devnull The full
310 cfa37a7b 2004-04-10 devnull .B Sam
311 cfa37a7b 2004-04-10 devnull language is implemented except for the commands
312 cfa37a7b 2004-04-10 devnull .BR k ,
313 cfa37a7b 2004-04-10 devnull .BR n ,
314 cfa37a7b 2004-04-10 devnull .BR q ,
315 cfa37a7b 2004-04-10 devnull and
316 cfa37a7b 2004-04-10 devnull .BR ! .
317 cfa37a7b 2004-04-10 devnull The
318 cfa37a7b 2004-04-10 devnull .B =
319 cfa37a7b 2004-04-10 devnull command is slightly different: it includes the file name and
320 cfa37a7b 2004-04-10 devnull gives only the line address unless the command is explicitly
321 cfa37a7b 2004-04-10 devnull .BR =# .
322 cfa37a7b 2004-04-10 devnull The `current window' for the command is the body of the window in which the
323 cfa37a7b 2004-04-10 devnull .B Edit
324 cfa37a7b 2004-04-10 devnull command is executed.
325 cfa37a7b 2004-04-10 devnull Usually the
326 cfa37a7b 2004-04-10 devnull .B Edit
327 cfa37a7b 2004-04-10 devnull command would be typed in a tag; longer commands may be prepared in a
328 cfa37a7b 2004-04-10 devnull scratch window and executed, with
329 cfa37a7b 2004-04-10 devnull .B Edit
330 cfa37a7b 2004-04-10 devnull itself in the current window, using the 2-1 chord described below.
331 cfa37a7b 2004-04-10 devnull .TP
332 cfa37a7b 2004-04-10 devnull .B Exit
333 cfa37a7b 2004-04-10 devnull Exit
334 cfa37a7b 2004-04-10 devnull .I acme
335 cfa37a7b 2004-04-10 devnull after checking that windows are not dirty.
336 cfa37a7b 2004-04-10 devnull .TP
337 cfa37a7b 2004-04-10 devnull .B Font
338 cfa37a7b 2004-04-10 devnull With no arguments, change the font of the associated window from fixed-spaced to
339 cfa37a7b 2004-04-10 devnull proportional-spaced or
340 cfa37a7b 2004-04-10 devnull .I vice
341 cfa37a7b 2004-04-10 devnull .IR versa .
342 cfa37a7b 2004-04-10 devnull Given a file name argument, change the font of the window to that stored in the named file.
343 cfa37a7b 2004-04-10 devnull If the file name argument is prefixed by
344 cfa37a7b 2004-04-10 devnull .B var
345 cfa37a7b 2004-04-10 devnull .RB ( fix ),
346 cfa37a7b 2004-04-10 devnull also set the default proportional-spaced (fixed-spaced) font for future use to that font.
347 cfa37a7b 2004-04-10 devnull Other existing windows are unaffected.
348 cfa37a7b 2004-04-10 devnull .TP
349 cfa37a7b 2004-04-10 devnull .B Get
350 cfa37a7b 2004-04-10 devnull Load file into window, replacing previous contents (after checking for dirtiness as in
351 cfa37a7b 2004-04-10 devnull .BR Del ).
352 cfa37a7b 2004-04-10 devnull With no argument, use the existing file name of the window.
353 cfa37a7b 2004-04-10 devnull Given an argument, use that file but do not change the window's file name.
354 cfa37a7b 2004-04-10 devnull .TP
355 cfa37a7b 2004-04-10 devnull .B ID
356 cfa37a7b 2004-04-10 devnull Print window ID number
357 cfa37a7b 2004-04-10 devnull .RI ( q.v. ).
358 cfa37a7b 2004-04-10 devnull .TP
359 cfa37a7b 2004-04-10 devnull .B Incl
360 cfa37a7b 2004-04-10 devnull When opening `include' files
361 cfa37a7b 2004-04-10 devnull (those enclosed in
362 cfa37a7b 2004-04-10 devnull .BR <> )
363 cfa37a7b 2004-04-10 devnull with button 3,
364 cfa37a7b 2004-04-10 devnull .I acme
365 cfa37a7b 2004-04-10 devnull searches in directories
366 cfa37a7b 2004-04-10 devnull .B /$objtype/include
367 cfa37a7b 2004-04-10 devnull and
368 cfa37a7b 2004-04-10 devnull .BR /sys/include .
369 cfa37a7b 2004-04-10 devnull .B Incl
370 cfa37a7b 2004-04-10 devnull adds its arguments to a supplementary list of include directories, analogous to
371 cfa37a7b 2004-04-10 devnull the
372 cfa37a7b 2004-04-10 devnull .B -I
373 cfa37a7b 2004-04-10 devnull option to the compilers.
374 cfa37a7b 2004-04-10 devnull This list is per-window and is inherited when windows are created by actions in that window, so
375 cfa37a7b 2004-04-10 devnull .I Incl
376 cfa37a7b 2004-04-10 devnull is most usefully applied to a directory containing relevant source.
377 cfa37a7b 2004-04-10 devnull With no arguments,
378 cfa37a7b 2004-04-10 devnull .I Incl
379 cfa37a7b 2004-04-10 devnull prints the supplementary list.
380 cfa37a7b 2004-04-10 devnull This command is largely superseded by plumbing
381 cfa37a7b 2004-04-10 devnull (see
382 d32deab1 2020-08-16 rsc .MR plumb (7) ).
383 cfa37a7b 2004-04-10 devnull .TP
384 b9771a80 2005-01-30 devnull .B Indent
385 b9771a80 2005-01-30 devnull Set the autoindent mode according to the argument:
386 b9771a80 2005-01-30 devnull .B on
387 b9771a80 2005-01-30 devnull and
388 b9771a80 2005-01-30 devnull .B off
389 b9771a80 2005-01-30 devnull set the mode for the current window;
390 b9771a80 2005-01-30 devnull .B ON
391 b9771a80 2005-01-30 devnull and
392 b9771a80 2005-01-30 devnull .B OFF
393 9952c0eb 2007-06-15 devnull set the mode for all existing and future windows.
394 b9771a80 2005-01-30 devnull .TP
395 cfa37a7b 2004-04-10 devnull .B Kill
396 cfa37a7b 2004-04-10 devnull Send a
397 cfa37a7b 2004-04-10 devnull .B kill
398 cfa37a7b 2004-04-10 devnull note to
399 cfa37a7b 2004-04-10 devnull .IR acme -initiated
400 cfa37a7b 2004-04-10 devnull commands named as arguments.
401 b9771a80 2005-01-30 devnull .TP
402 b9771a80 2005-01-30 devnull .B Load
403 b9771a80 2005-01-30 devnull Restore the state of
404 b9771a80 2005-01-30 devnull .I acme
405 b9771a80 2005-01-30 devnull from a file (default
406 bfe4377e 2020-05-19 rsc .BR $HOME/acme.dump )
407 b9771a80 2005-01-30 devnull created by the
408 b9771a80 2005-01-30 devnull .B Dump
409 b9771a80 2005-01-30 devnull command.
410 cfa37a7b 2004-04-10 devnull .TP
411 cfa37a7b 2004-04-10 devnull .B Local
412 058b0118 2005-01-03 devnull In the Plan 9
413 058b0118 2005-01-03 devnull .IR acme ,
414 f264bbcd 2020-01-06 rsc this prefix causes a command to be run in
415 058b0118 2005-01-03 devnull .IR acme 's own
416 058b0118 2005-01-03 devnull file name space and environment variable group.
417 058b0118 2005-01-03 devnull On Unix this is impossible.
418 058b0118 2005-01-03 devnull .B Local
419 058b0118 2005-01-03 devnull is recognized as a prefix, but has no effect on the command being executed.
420 058b0118 2005-01-03 devnull .\" .TP
421 058b0118 2005-01-03 devnull .\" .B Local
422 058b0118 2005-01-03 devnull .\" When prefixed to a command
423 058b0118 2005-01-03 devnull .\" run the
424 058b0118 2005-01-03 devnull .\" command in the same file name space and environment variable group as
425 058b0118 2005-01-03 devnull .\" .IR acme .
426 058b0118 2005-01-03 devnull .\" The environment of the command
427 058b0118 2005-01-03 devnull .\" is restricted but is sufficient to run
428 058b0118 2005-01-03 devnull .\" .IR bind (1),
429 058b0118 2005-01-03 devnull .\" .IR 9fs
430 058b0118 2005-01-03 devnull .\" (see
431 058b0118 2005-01-03 devnull .\" .IR srv (4)),
432 058b0118 2005-01-03 devnull .\" .IR import (4),
433 058b0118 2005-01-03 devnull .\" etc.,
434 058b0118 2005-01-03 devnull .\" and to set environment variables such as
435 058b0118 2005-01-03 devnull .\" .BR $objtype .
436 cfa37a7b 2004-04-10 devnull .TP
437 cfa37a7b 2004-04-10 devnull .B Look
438 cfa37a7b 2004-04-10 devnull Search in body for occurrence of literal text indicated by the argument or,
439 cfa37a7b 2004-04-10 devnull if none is given, by the selected text in the body.
440 cfa37a7b 2004-04-10 devnull .TP
441 cfa37a7b 2004-04-10 devnull .B New
442 cfa37a7b 2004-04-10 devnull Make new window. With arguments, load the named files into windows.
443 cfa37a7b 2004-04-10 devnull .TP
444 cfa37a7b 2004-04-10 devnull .B Newcol
445 cfa37a7b 2004-04-10 devnull Make new column.
446 cfa37a7b 2004-04-10 devnull .TP
447 cfa37a7b 2004-04-10 devnull .B Paste
448 cfa37a7b 2004-04-10 devnull Replace most recently selected text with contents of snarf buffer.
449 cfa37a7b 2004-04-10 devnull .TP
450 cfa37a7b 2004-04-10 devnull .B Put
451 cfa37a7b 2004-04-10 devnull Write window to the named file.
452 cfa37a7b 2004-04-10 devnull With no argument, write to the file named in the tag of the window.
453 cfa37a7b 2004-04-10 devnull .TP
454 cfa37a7b 2004-04-10 devnull .B Putall
455 cfa37a7b 2004-04-10 devnull Write all dirty windows whose names indicate existing regular files.
456 cfa37a7b 2004-04-10 devnull .TP
457 cfa37a7b 2004-04-10 devnull .B Redo
458 cfa37a7b 2004-04-10 devnull Complement of
459 cfa37a7b 2004-04-10 devnull .BR Undo .
460 cfa37a7b 2004-04-10 devnull .TP
461 cfa37a7b 2004-04-10 devnull .B Send
462 cfa37a7b 2004-04-10 devnull Append selected text or snarf buffer to end of body; used mainly with
463 cfa37a7b 2004-04-10 devnull .IR win .
464 cfa37a7b 2004-04-10 devnull .TP
465 cfa37a7b 2004-04-10 devnull .B Snarf
466 cfa37a7b 2004-04-10 devnull Place selected text in snarf buffer.
467 cfa37a7b 2004-04-10 devnull .TP
468 cfa37a7b 2004-04-10 devnull .B Sort
469 cfa37a7b 2004-04-10 devnull Arrange the windows in the column from top to bottom in lexicographical
470 cfa37a7b 2004-04-10 devnull order based on their names.
471 cfa37a7b 2004-04-10 devnull .TP
472 cfa37a7b 2004-04-10 devnull .B Tab
473 cfa37a7b 2004-04-10 devnull Set the width of tab stops for this window to the value of the argument, in units of widths of the zero
474 cfa37a7b 2004-04-10 devnull character.
475 cfa37a7b 2004-04-10 devnull With no arguments, it prints the current value.
476 cfa37a7b 2004-04-10 devnull .TP
477 cfa37a7b 2004-04-10 devnull .B Undo
478 cfa37a7b 2004-04-10 devnull Undo last textual change or set of changes.
479 cfa37a7b 2004-04-10 devnull .TP
480 cfa37a7b 2004-04-10 devnull .B Zerox
481 cfa37a7b 2004-04-10 devnull Create a copy of the window containing most recently selected text.
482 91fb6aaa 2007-01-27 devnull .TP
483 91fb6aaa 2007-01-27 devnull .B <|>
484 91fb6aaa 2007-01-27 devnull If a regular shell command is preceded by a
485 91fb6aaa 2007-01-27 devnull .BR < ,
486 91fb6aaa 2007-01-27 devnull .BR | ,
487 91fb6aaa 2007-01-27 devnull or
488 91fb6aaa 2007-01-27 devnull .B >
489 91fb6aaa 2007-01-27 devnull character, the selected text in the body of the window is affected by the
490 91fb6aaa 2007-01-27 devnull I/O from the command.
491 91fb6aaa 2007-01-27 devnull The
492 91fb6aaa 2007-01-27 devnull .B <
493 91fb6aaa 2007-01-27 devnull character causes the selection to be replaced by the standard output
494 91fb6aaa 2007-01-27 devnull of the command;
495 91fb6aaa 2007-01-27 devnull .B >
496 91fb6aaa 2007-01-27 devnull causes the selection to be sent as standard input to the command; and
497 91fb6aaa 2007-01-27 devnull .B |
498 91fb6aaa 2007-01-27 devnull does both at once, `piping' the selection through the command and
499 91fb6aaa 2007-01-27 devnull replacing it with the output.
500 cfa37a7b 2004-04-10 devnull .PP
501 cfa37a7b 2004-04-10 devnull A common place to store text for commands is in the tag; in fact
502 cfa37a7b 2004-04-10 devnull .I acme
503 cfa37a7b 2004-04-10 devnull maintains a set of commands appropriate to the state of the window
504 cfa37a7b 2004-04-10 devnull to the left of the bar in the tag.
505 cfa37a7b 2004-04-10 devnull .PP
506 cfa37a7b 2004-04-10 devnull If the text indicated with button 2 is not a recognized built-in, it is executed as
507 cfa37a7b 2004-04-10 devnull a shell command. For example, indicating
508 cfa37a7b 2004-04-10 devnull .B date
509 cfa37a7b 2004-04-10 devnull with button 2 runs
510 d32deab1 2020-08-16 rsc .MR date (1) .
511 cfa37a7b 2004-04-10 devnull The standard
512 cfa37a7b 2004-04-10 devnull and error outputs of commands are sent to the error window associated with
513 cfa37a7b 2004-04-10 devnull the directory from which the command was run, which will be created if
514 cfa37a7b 2004-04-10 devnull necessary.
515 cfa37a7b 2004-04-10 devnull For example, in a window
516 c8b6342d 2005-01-13 devnull .B /etc/passwd
517 cfa37a7b 2004-04-10 devnull executing
518 cfa37a7b 2004-04-10 devnull .B pwd
519 cfa37a7b 2004-04-10 devnull will produce the output
520 c8b6342d 2005-01-13 devnull .B /etc
521 cfa37a7b 2004-04-10 devnull in a (possibly newly-created) window labeled
522 c8b6342d 2005-01-13 devnull .BR /etc/+Errors ;
523 cfa37a7b 2004-04-10 devnull in a window containing
524 c8b6342d 2005-01-13 devnull .B /home/rob/sam/sam.c
525 cfa37a7b 2004-04-10 devnull executing
526 cfa37a7b 2004-04-10 devnull .B mk
527 cfa37a7b 2004-04-10 devnull will run
528 d32deab1 2020-08-16 rsc .MR mk (1)
529 cfa37a7b 2004-04-10 devnull in
530 c8b6342d 2005-01-13 devnull .BR /home/rob/sam ,
531 cfa37a7b 2004-04-10 devnull producing output in a window labeled
532 c8b6342d 2005-01-13 devnull .BR /home/rob/sam/+Errors .
533 cfa37a7b 2004-04-10 devnull The environment of such commands contains the variable
534 cfa37a7b 2004-04-10 devnull .B $%
535 2589c5c6 2012-11-26 rsc and
536 2589c5c6 2012-11-26 rsc .B $samfile
537 c8b6342d 2005-01-13 devnull with value set to the filename of the window in which the command is run,
538 c8b6342d 2005-01-13 devnull and
539 c8b6342d 2005-01-13 devnull .B $winid
540 c8b6342d 2005-01-13 devnull set to the window's id number
541 c8b6342d 2005-01-13 devnull (see
542 d32deab1 2020-08-16 rsc .MR acme (4) ).
543 81c2c5e7 2012-10-21 rsc .PP
544 81c2c5e7 2012-10-21 rsc The environment variable
545 81c2c5e7 2012-10-21 rsc .B $acmeshell
546 81c2c5e7 2012-10-21 rsc determines which shell is used to execute such commands; the
547 d32deab1 2020-08-16 rsc .MR rc (1)
548 f264bbcd 2020-01-06 rsc shell is used by default.
549 cfa37a7b 2004-04-10 devnull .SS "Mouse button 3
550 cfa37a7b 2004-04-10 devnull Pointing at text with button 3 instructs
551 cfa37a7b 2004-04-10 devnull .I acme
552 cfa37a7b 2004-04-10 devnull to locate or acquire the file, string, etc. described by the indicated text and
553 cfa37a7b 2004-04-10 devnull its context.
554 cfa37a7b 2004-04-10 devnull This description follows the actions taken when
555 cfa37a7b 2004-04-10 devnull button 3 is released after sweeping out some text.
556 cfa37a7b 2004-04-10 devnull In the description,
557 cfa37a7b 2004-04-10 devnull .I text
558 cfa37a7b 2004-04-10 devnull refers to the text of the original sweep or, if it was null, the result of
559 cfa37a7b 2004-04-10 devnull applying the same expansion rules that apply to button 2 actions.
560 cfa37a7b 2004-04-10 devnull .PP
561 cfa37a7b 2004-04-10 devnull If the text names an existing window,
562 cfa37a7b 2004-04-10 devnull .I acme
563 cfa37a7b 2004-04-10 devnull moves the mouse cursor to the selected text in the body of that window.
564 cfa37a7b 2004-04-10 devnull If the text names an existing file with no associated window,
565 cfa37a7b 2004-04-10 devnull .I acme
566 cfa37a7b 2004-04-10 devnull loads the file into a new window and moves the mouse there.
567 cfa37a7b 2004-04-10 devnull If the text is a file name contained in angle brackets,
568 cfa37a7b 2004-04-10 devnull .I acme
569 cfa37a7b 2004-04-10 devnull loads the indicated include file from the directory appropriate to the
570 cfa37a7b 2004-04-10 devnull suffix of the file name of the window holding the text.
571 cfa37a7b 2004-04-10 devnull (The
572 cfa37a7b 2004-04-10 devnull .B Incl
573 cfa37a7b 2004-04-10 devnull command adds directories to the standard list.)
574 cfa37a7b 2004-04-10 devnull .PP
575 cfa37a7b 2004-04-10 devnull If the text begins with a colon, it is taken to be an address, in
576 cfa37a7b 2004-04-10 devnull the style of
577 d32deab1 2020-08-16 rsc .MR sam (1) ,
578 cfa37a7b 2004-04-10 devnull within the body of the window containing the text.
579 cfa37a7b 2004-04-10 devnull The address is evaluated, the resulting text highlighted, and the mouse moved to it.
580 cfa37a7b 2004-04-10 devnull Thus, in
581 cfa37a7b 2004-04-10 devnull .IR acme ,
582 cfa37a7b 2004-04-10 devnull one must type
583 cfa37a7b 2004-04-10 devnull .B :/regexp
584 cfa37a7b 2004-04-10 devnull or
585 cfa37a7b 2004-04-10 devnull .B :127
586 cfa37a7b 2004-04-10 devnull not just
587 cfa37a7b 2004-04-10 devnull .B /regexp
588 cfa37a7b 2004-04-10 devnull or
589 cfa37a7b 2004-04-10 devnull .BR 127 .
590 cfa37a7b 2004-04-10 devnull (There is an easier way to locate literal text; see below.)
591 cfa37a7b 2004-04-10 devnull .PP
592 cfa37a7b 2004-04-10 devnull If the text is a file name followed by a colon and an address,
593 cfa37a7b 2004-04-10 devnull .I acme
594 cfa37a7b 2004-04-10 devnull loads the file and evaluates the address. For example, clicking button 3 anywhere
595 cfa37a7b 2004-04-10 devnull in the text
596 cfa37a7b 2004-04-10 devnull .B file.c:27
597 cfa37a7b 2004-04-10 devnull will open
598 cfa37a7b 2004-04-10 devnull .BR file.c ,
599 cfa37a7b 2004-04-10 devnull select line
600 cfa37a7b 2004-04-10 devnull 27, and put the mouse at the beginning of the line. The rules about Error
601 cfa37a7b 2004-04-10 devnull files, directories, and so on all combine to make this an efficient way to
602 cfa37a7b 2004-04-10 devnull investigate errors from compilers, etc.
603 cfa37a7b 2004-04-10 devnull .PP
604 cfa37a7b 2004-04-10 devnull If the text is not an address or file, it is taken to
605 cfa37a7b 2004-04-10 devnull be literal text, which is then searched for in the body of the window
606 cfa37a7b 2004-04-10 devnull in which button 3 was clicked. If a match is found, it is selected and the mouse is
607 cfa37a7b 2004-04-10 devnull moved there. Thus, to search for occurrences of a word in a file,
608 cfa37a7b 2004-04-10 devnull just click button 3 on the word. Because of the rule of using the
609 cfa37a7b 2004-04-10 devnull selection as the button 3 action, subsequent clicks will find subsequent
610 cfa37a7b 2004-04-10 devnull occurrences without moving the mouse.
611 cfa37a7b 2004-04-10 devnull .PP
612 cfa37a7b 2004-04-10 devnull In all these actions, the mouse motion is not done if the text is a null string
613 cfa37a7b 2004-04-10 devnull within a non-null selected string in the tag, so that (for example) complex regular expressions
614 cfa37a7b 2004-04-10 devnull may be selected and applied repeatedly to the
615 cfa37a7b 2004-04-10 devnull body by just clicking button 3 over them.
616 cfa37a7b 2004-04-10 devnull .SS "Chords of mouse buttons
617 cfa37a7b 2004-04-10 devnull Several operations are bound to multiple-button actions.
618 cfa37a7b 2004-04-10 devnull After selecting text, with button 1 still down, pressing button 2
619 cfa37a7b 2004-04-10 devnull executes
620 cfa37a7b 2004-04-10 devnull .B Cut
621 cfa37a7b 2004-04-10 devnull and button 3 executes
622 cfa37a7b 2004-04-10 devnull .BR Paste .
623 cfa37a7b 2004-04-10 devnull After clicking one button, the other undoes
624 cfa37a7b 2004-04-10 devnull the first; thus (while holding down button 1) 2 followed by 3 is a
625 cfa37a7b 2004-04-10 devnull .B Snarf
626 cfa37a7b 2004-04-10 devnull that leaves the file undirtied;
627 cfa37a7b 2004-04-10 devnull 3 followed by 2 is a no-op.
628 cfa37a7b 2004-04-10 devnull These actions also apply to text selected by double-clicking because
629 cfa37a7b 2004-04-10 devnull the double-click expansion is made when the second
630 cfa37a7b 2004-04-10 devnull click starts, not when it ends.
631 cfa37a7b 2004-04-10 devnull .PP
632 cfa37a7b 2004-04-10 devnull Commands may be given extra arguments by a mouse chord with buttons 2 and 1.
633 cfa37a7b 2004-04-10 devnull While holding down button 2 on text to be executed as a command, clicking button 1
634 cfa37a7b 2004-04-10 devnull appends the text last pointed to by button 1 as a distinct final argument.
635 cfa37a7b 2004-04-10 devnull For example, to search for literal
636 cfa37a7b 2004-04-10 devnull .B text
637 cfa37a7b 2004-04-10 devnull one may execute
638 cfa37a7b 2004-04-10 devnull .B Look text
639 cfa37a7b 2004-04-10 devnull with button 2 or instead point at
640 cfa37a7b 2004-04-10 devnull .B text
641 cfa37a7b 2004-04-10 devnull with button 1 in any window, release button 1,
642 cfa37a7b 2004-04-10 devnull then execute
643 cfa37a7b 2004-04-10 devnull .BR Look ,
644 cfa37a7b 2004-04-10 devnull clicking button 1 while 2 is held down.
645 cfa37a7b 2004-04-10 devnull .PP
646 cfa37a7b 2004-04-10 devnull When an external command (e.g.
647 d32deab1 2020-08-16 rsc .MR echo (1) )
648 cfa37a7b 2004-04-10 devnull is executed this way, the extra argument is passed as expected and an
649 cfa37a7b 2004-04-10 devnull environment variable
650 cfa37a7b 2004-04-10 devnull .B $acmeaddr
651 cfa37a7b 2004-04-10 devnull is created that holds, in the form interpreted by button 3,
652 cfa37a7b 2004-04-10 devnull the fully-qualified address of the extra argument.
653 35abfa1b 2017-07-16 rsc .SS "Simulated buttons
654 35abfa1b 2017-07-16 rsc For systems without a three-button mouse, the keyboard modifier
655 35abfa1b 2017-07-16 rsc keys can be used to modify the effect of the main mouse button.
656 35abfa1b 2017-07-16 rsc On Unix systems, the Control key changes the main button to button 2,
657 35abfa1b 2017-07-16 rsc and the Alt key changes it to button 3.
658 35abfa1b 2017-07-16 rsc On Mac systems, the Option key changes the main button to button 2,
659 35abfa1b 2017-07-16 rsc and the Command key changes it to button 3.
660 35abfa1b 2017-07-16 rsc Pressing the key after the button is held down adds the button to form
661 35abfa1b 2017-07-16 rsc a chord, so that for example on Macs selecting text with the trackpad
662 35abfa1b 2017-07-16 rsc button and then typing Option without letting go of the button will
663 35abfa1b 2017-07-16 rsc cause a 1-2 chord, cutting the selection.
664 35abfa1b 2017-07-16 rsc On Mac systems, the usual keyboard shortcuts
665 35abfa1b 2017-07-16 rsc Command-C, -V, -X, and -Z invoke
666 f264bbcd 2020-01-06 rsc copy, paste, cut, and undo,
667 35abfa1b 2017-07-16 rsc and Command-Shift-Z invokes redo,
668 35abfa1b 2017-07-16 rsc as in other programs.
669 35abfa1b 2017-07-16 rsc Especially on Mac laptops, these keyboard shortcuts are
670 35abfa1b 2017-07-16 rsc typically much less awkward than the equivalent chords.
671 cfa37a7b 2004-04-10 devnull .SS "Support programs
672 cfa37a7b 2004-04-10 devnull .I Win
673 cfa37a7b 2004-04-10 devnull creates a new
674 cfa37a7b 2004-04-10 devnull .I acme
675 cfa37a7b 2004-04-10 devnull window and runs a
676 cfa37a7b 2004-04-10 devnull .I command
677 cfa37a7b 2004-04-10 devnull (default
678 c8b6342d 2005-01-13 devnull .BR $SHELL )
679 cfa37a7b 2004-04-10 devnull in it, turning the window into something analogous to an
680 d32deab1 2020-08-16 rsc .MR 9term (1)
681 cfa37a7b 2004-04-10 devnull window.
682 cfa37a7b 2004-04-10 devnull Executing text in a
683 cfa37a7b 2004-04-10 devnull .I win
684 cfa37a7b 2004-04-10 devnull window with button
685 cfa37a7b 2004-04-10 devnull 2 is similar to using
686 cfa37a7b 2004-04-10 devnull .BR Send .
687 ba31ab30 2011-04-27 rsc .I Win
688 ba31ab30 2011-04-27 rsc windows follow the same scrolling heuristic as in
689 d32deab1 2020-08-16 rsc .MR 9term (1) :
690 ba31ab30 2011-04-27 rsc the window scrolls on output only if the window is displaying the end of the buffer.
691 cfa37a7b 2004-04-10 devnull .PP
692 cfa37a7b 2004-04-10 devnull .I Awd
693 cfa37a7b 2004-04-10 devnull loads the tag line of its window with the directory in which it's running, suffixed
694 cfa37a7b 2004-04-10 devnull .BI - label
695 cfa37a7b 2004-04-10 devnull (default
696 cfa37a7b 2004-04-10 devnull .BR rc );
697 cfa37a7b 2004-04-10 devnull it is
698 cfa37a7b 2004-04-10 devnull intended to be executed by a
699 cfa37a7b 2004-04-10 devnull .B cd
700 cfa37a7b 2004-04-10 devnull function for use in
701 cfa37a7b 2004-04-10 devnull .I win
702 cfa37a7b 2004-04-10 devnull windows. An example definition is
703 cfa37a7b 2004-04-10 devnull .EX
704 cfa37a7b 2004-04-10 devnull fn cd { builtin cd $1 && awd $sysname }
705 cfa37a7b 2004-04-10 devnull .EE
706 cfa37a7b 2004-04-10 devnull .SS "Applications and guide files
707 cfa37a7b 2004-04-10 devnull In the directory
708 cfa37a7b 2004-04-10 devnull .B /acme
709 cfa37a7b 2004-04-10 devnull live several subdirectories, each corresponding to a program or
710 cfa37a7b 2004-04-10 devnull set of related programs that employ
711 cfa37a7b 2004-04-10 devnull .I acme's
712 cfa37a7b 2004-04-10 devnull user interface.
713 cfa37a7b 2004-04-10 devnull Each subdirectory includes source, binaries, and a
714 cfa37a7b 2004-04-10 devnull .B readme
715 cfa37a7b 2004-04-10 devnull file for further information.
716 cfa37a7b 2004-04-10 devnull It also includes a
717 cfa37a7b 2004-04-10 devnull .BR guide ,
718 cfa37a7b 2004-04-10 devnull a text file holding sample commands to invoke the programs.
719 cfa37a7b 2004-04-10 devnull The idea is to find an example in the guide that best matches
720 cfa37a7b 2004-04-10 devnull the job at hand, edit it to suit, and execute it.
721 cfa37a7b 2004-04-10 devnull .PP
722 cfa37a7b 2004-04-10 devnull Whenever a command is executed by
723 cfa37a7b 2004-04-10 devnull .IR acme ,
724 cfa37a7b 2004-04-10 devnull the default search path includes the directory of the window containing
725 cfa37a7b 2004-04-10 devnull the command and its subdirectory
726 cfa37a7b 2004-04-10 devnull .BR $cputype .
727 cfa37a7b 2004-04-10 devnull The program directories in
728 cfa37a7b 2004-04-10 devnull .B /acme
729 cfa37a7b 2004-04-10 devnull contain appropriately labeled subdirectories of binaries,
730 cfa37a7b 2004-04-10 devnull so commands named
731 cfa37a7b 2004-04-10 devnull in the guide files will be found automatically when run.
732 cfa37a7b 2004-04-10 devnull Also,
733 cfa37a7b 2004-04-10 devnull .I acme
734 cfa37a7b 2004-04-10 devnull binds the directories
735 cfa37a7b 2004-04-10 devnull .B /acme/bin
736 cfa37a7b 2004-04-10 devnull and
737 cfa37a7b 2004-04-10 devnull .B /acme/bin/$cputype
738 cfa37a7b 2004-04-10 devnull to the end of
739 cfa37a7b 2004-04-10 devnull .B /bin
740 cfa37a7b 2004-04-10 devnull when it starts; this is where
741 cfa37a7b 2004-04-10 devnull .IR acme -specific
742 cfa37a7b 2004-04-10 devnull programs such as
743 cfa37a7b 2004-04-10 devnull .I win
744 cfa37a7b 2004-04-10 devnull and
745 cfa37a7b 2004-04-10 devnull .I awd
746 cfa37a7b 2004-04-10 devnull reside.
747 cfa37a7b 2004-04-10 devnull .SH FILES
748 bfe4377e 2020-05-19 rsc .TF $HOME/acme.dump
749 cfa37a7b 2004-04-10 devnull .TP
750 bfe4377e 2020-05-19 rsc .B $HOME/acme.dump
751 cfa37a7b 2004-04-10 devnull default file for
752 cfa37a7b 2004-04-10 devnull .B Dump
753 cfa37a7b 2004-04-10 devnull and
754 cfa37a7b 2004-04-10 devnull .BR Load ;
755 cfa37a7b 2004-04-10 devnull also where state is written if
756 cfa37a7b 2004-04-10 devnull .I acme
757 cfa37a7b 2004-04-10 devnull dies or is killed unexpectedly, e.g. by deleting its window.
758 cfa37a7b 2004-04-10 devnull .TP
759 cfa37a7b 2004-04-10 devnull .B /acme/*/guide
760 cfa37a7b 2004-04-10 devnull template files for applications
761 cfa37a7b 2004-04-10 devnull .TP
762 cfa37a7b 2004-04-10 devnull .B /acme/*/readme
763 cfa37a7b 2004-04-10 devnull informal documentation for applications
764 cfa37a7b 2004-04-10 devnull .TP
765 cfa37a7b 2004-04-10 devnull .B /acme/*/src
766 cfa37a7b 2004-04-10 devnull source for applications
767 cfa37a7b 2004-04-10 devnull .TP
768 cfa37a7b 2004-04-10 devnull .B /acme/*/mips
769 cfa37a7b 2004-04-10 devnull MIPS-specific binaries for applications
770 cfa37a7b 2004-04-10 devnull .SH SOURCE
771 c3674de4 2005-01-11 devnull .B \*9/src/cmd/acme
772 cfa37a7b 2004-04-10 devnull .br
773 c3674de4 2005-01-11 devnull .B \*9/src/cmd/9term/win.c
774 cfa37a7b 2004-04-10 devnull .br
775 c3674de4 2005-01-11 devnull .B \*9/bin/awd
776 cfa37a7b 2004-04-10 devnull .SH SEE ALSO
777 d32deab1 2020-08-16 rsc .MR acme (4)
778 cfa37a7b 2004-04-10 devnull .br
779 cfa37a7b 2004-04-10 devnull Rob Pike,
780 cfa37a7b 2004-04-10 devnull .I
781 cfa37a7b 2004-04-10 devnull Acme: A User Interface for Programmers.
782 cfa37a7b 2004-04-10 devnull .SH BUGS
783 cfa37a7b 2004-04-10 devnull With the
784 cfa37a7b 2004-04-10 devnull .B -l
785 cfa37a7b 2004-04-10 devnull option or
786 cfa37a7b 2004-04-10 devnull .B Load
787 cfa37a7b 2004-04-10 devnull command,
788 cfa37a7b 2004-04-10 devnull the recreation of windows under control of external programs
789 cfa37a7b 2004-04-10 devnull such as
790 cfa37a7b 2004-04-10 devnull .I win
791 cfa37a7b 2004-04-10 devnull is just to rerun the command; information may be lost.