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 b4704695 2023-01-26 op .B -aibr
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 b4704695 2023-01-26 op .PP
207 b4704695 2023-01-26 op When a window is in spacesindent mode
208 b4704695 2023-01-26 op (see the
209 b4704695 2023-01-26 op .B Spaces
210 b4704695 2023-01-26 op command below) and a tab character is typed,
211 b4704695 2023-01-26 op acme indents the line with spaces equal to the current
212 b4704695 2023-01-26 op tabstop for the window. The option
213 b4704695 2023-01-26 op .B -i
214 b4704695 2023-01-26 op causes each window to start in spacesindent
215 b4704695 2023-01-26 op mode.
216 cfa37a7b 2004-04-10 devnull .SS "Directory context
217 cfa37a7b 2004-04-10 devnull Each window's tag names a directory: explicitly if the window
218 cfa37a7b 2004-04-10 devnull holds a directory; implicitly if it holds a regular file
219 cfa37a7b 2004-04-10 devnull (e.g. the directory
220 cfa37a7b 2004-04-10 devnull .B /adm
221 cfa37a7b 2004-04-10 devnull if the window holds
222 cfa37a7b 2004-04-10 devnull .BR /adm/users ).
223 cfa37a7b 2004-04-10 devnull This directory provides a
224 cfa37a7b 2004-04-10 devnull .I context
225 cfa37a7b 2004-04-10 devnull for interpreting file names in that window.
226 cfa37a7b 2004-04-10 devnull For example, the string
227 cfa37a7b 2004-04-10 devnull .B users
228 cfa37a7b 2004-04-10 devnull in a window labeled
229 cfa37a7b 2004-04-10 devnull .B /adm/
230 cfa37a7b 2004-04-10 devnull or
231 cfa37a7b 2004-04-10 devnull .B /adm/keys
232 cfa37a7b 2004-04-10 devnull will be interpreted as the file name
233 cfa37a7b 2004-04-10 devnull .BR /adm/users .
234 cfa37a7b 2004-04-10 devnull The directory is defined purely textually, so it can be a non-existent
235 cfa37a7b 2004-04-10 devnull directory or a real directory associated with a non-existent file
236 cfa37a7b 2004-04-10 devnull (e.g.
237 cfa37a7b 2004-04-10 devnull .BR /adm/not-a-file ).
238 cfa37a7b 2004-04-10 devnull File names beginning with a slash
239 cfa37a7b 2004-04-10 devnull are assumed to be absolute file names.
240 cfa37a7b 2004-04-10 devnull .SS Errors
241 cfa37a7b 2004-04-10 devnull Windows whose names begin with
242 cfa37a7b 2004-04-10 devnull .B -
243 cfa37a7b 2004-04-10 devnull or
244 cfa37a7b 2004-04-10 devnull .B +
245 cfa37a7b 2004-04-10 devnull conventionally hold diagnostics and other data
246 cfa37a7b 2004-04-10 devnull not directly associated with files.
247 cfa37a7b 2004-04-10 devnull A window labeled
248 cfa37a7b 2004-04-10 devnull .B +Errors
249 cfa37a7b 2004-04-10 devnull receives all diagnostics produced by
250 cfa37a7b 2004-04-10 devnull .I acme
251 cfa37a7b 2004-04-10 devnull itself.
252 cfa37a7b 2004-04-10 devnull Diagnostics from commands run by
253 cfa37a7b 2004-04-10 devnull .I acme
254 cfa37a7b 2004-04-10 devnull appear in a window named
255 cfa37a7b 2004-04-10 devnull .IB directory /+Errors
256 cfa37a7b 2004-04-10 devnull where
257 cfa37a7b 2004-04-10 devnull .I directory
258 cfa37a7b 2004-04-10 devnull is identified by the context of the command.
259 cfa37a7b 2004-04-10 devnull These error windows are created when needed.
260 cfa37a7b 2004-04-10 devnull .SS "Mouse button 1
261 cfa37a7b 2004-04-10 devnull Mouse button 1 selects text just as in
262 d32deab1 2020-08-16 rsc .MR sam (1)
263 cfa37a7b 2004-04-10 devnull or
264 cfa37a7b 2004-04-10 devnull .IR rio (1) ,
265 cfa37a7b 2004-04-10 devnull including the usual double-clicking conventions.
266 cfa37a7b 2004-04-10 devnull .SS "Mouse button 2
267 cfa37a7b 2004-04-10 devnull By an
268 cfa37a7b 2004-04-10 devnull action similar to selecting text with button 1,
269 cfa37a7b 2004-04-10 devnull button 2 indicates text to execute as a command.
270 cfa37a7b 2004-04-10 devnull If the indicated text has multiple white-space-separated words,
271 cfa37a7b 2004-04-10 devnull the first is the command name and the second and subsequent
272 cfa37a7b 2004-04-10 devnull are its arguments.
273 cfa37a7b 2004-04-10 devnull If button 2 is `clicked'\(emindicates a null string\(em\c
274 cfa37a7b 2004-04-10 devnull .I acme
275 cfa37a7b 2004-04-10 devnull .I expands
276 cfa37a7b 2004-04-10 devnull the indicated text to find a command to run:
277 cfa37a7b 2004-04-10 devnull if the click is within button-1-selected text,
278 cfa37a7b 2004-04-10 devnull .I acme
279 cfa37a7b 2004-04-10 devnull takes that selection as the command;
280 cfa37a7b 2004-04-10 devnull otherwise it takes the largest string of valid file name characters containing the click.
281 cfa37a7b 2004-04-10 devnull Valid file name characters are alphanumerics and
282 cfa37a7b 2004-04-10 devnull .B _
283 cfa37a7b 2004-04-10 devnull .B .
284 cfa37a7b 2004-04-10 devnull .B -
285 cfa37a7b 2004-04-10 devnull .B +
286 cfa37a7b 2004-04-10 devnull .BR / .
287 cfa37a7b 2004-04-10 devnull This behavior is similar to double-clicking with button 1 but,
288 cfa37a7b 2004-04-10 devnull because a null command is meaningless, only a single click is required.
289 cfa37a7b 2004-04-10 devnull .PP
290 cfa37a7b 2004-04-10 devnull Some commands, all by convention starting with a capital letter, are
291 cfa37a7b 2004-04-10 devnull .I built-ins
292 cfa37a7b 2004-04-10 devnull that are executed directly by
293 cfa37a7b 2004-04-10 devnull .IR acme :
294 cfa37a7b 2004-04-10 devnull .TP
295 cfa37a7b 2004-04-10 devnull .B Cut
296 cfa37a7b 2004-04-10 devnull Delete most recently selected text and place in snarf buffer.
297 cfa37a7b 2004-04-10 devnull .TP
298 cfa37a7b 2004-04-10 devnull .B Del
299 cfa37a7b 2004-04-10 devnull Delete window. If window is dirty, instead print a warning; a second
300 cfa37a7b 2004-04-10 devnull .B Del
301 cfa37a7b 2004-04-10 devnull will succeed.
302 cfa37a7b 2004-04-10 devnull .TP
303 cfa37a7b 2004-04-10 devnull .B Delcol
304 cfa37a7b 2004-04-10 devnull Delete column and all its windows, after checking that windows are not dirty.
305 cfa37a7b 2004-04-10 devnull .TP
306 cfa37a7b 2004-04-10 devnull .B Delete
307 cfa37a7b 2004-04-10 devnull Delete window without checking for dirtiness.
308 cfa37a7b 2004-04-10 devnull .TP
309 cfa37a7b 2004-04-10 devnull .B Dump
310 cfa37a7b 2004-04-10 devnull Write the state of
311 cfa37a7b 2004-04-10 devnull .I acme
312 cfa37a7b 2004-04-10 devnull to the file name, if specified, or
313 bfe4377e 2020-05-19 rsc .B $HOME/acme.dump
314 cfa37a7b 2004-04-10 devnull by default.
315 cfa37a7b 2004-04-10 devnull .TP
316 cfa37a7b 2004-04-10 devnull .B Edit
317 cfa37a7b 2004-04-10 devnull Treat the argument as a text editing command in the style of
318 d32deab1 2020-08-16 rsc .MR sam (1) .
319 cfa37a7b 2004-04-10 devnull The full
320 cfa37a7b 2004-04-10 devnull .B Sam
321 cfa37a7b 2004-04-10 devnull language is implemented except for the commands
322 cfa37a7b 2004-04-10 devnull .BR k ,
323 cfa37a7b 2004-04-10 devnull .BR n ,
324 cfa37a7b 2004-04-10 devnull .BR q ,
325 cfa37a7b 2004-04-10 devnull and
326 cfa37a7b 2004-04-10 devnull .BR ! .
327 cfa37a7b 2004-04-10 devnull The
328 cfa37a7b 2004-04-10 devnull .B =
329 cfa37a7b 2004-04-10 devnull command is slightly different: it includes the file name and
330 cfa37a7b 2004-04-10 devnull gives only the line address unless the command is explicitly
331 cfa37a7b 2004-04-10 devnull .BR =# .
332 cfa37a7b 2004-04-10 devnull The `current window' for the command is the body of the window in which the
333 cfa37a7b 2004-04-10 devnull .B Edit
334 cfa37a7b 2004-04-10 devnull command is executed.
335 cfa37a7b 2004-04-10 devnull Usually the
336 cfa37a7b 2004-04-10 devnull .B Edit
337 cfa37a7b 2004-04-10 devnull command would be typed in a tag; longer commands may be prepared in a
338 cfa37a7b 2004-04-10 devnull scratch window and executed, with
339 cfa37a7b 2004-04-10 devnull .B Edit
340 cfa37a7b 2004-04-10 devnull itself in the current window, using the 2-1 chord described below.
341 cfa37a7b 2004-04-10 devnull .TP
342 cfa37a7b 2004-04-10 devnull .B Exit
343 cfa37a7b 2004-04-10 devnull Exit
344 cfa37a7b 2004-04-10 devnull .I acme
345 cfa37a7b 2004-04-10 devnull after checking that windows are not dirty.
346 cfa37a7b 2004-04-10 devnull .TP
347 cfa37a7b 2004-04-10 devnull .B Font
348 cfa37a7b 2004-04-10 devnull With no arguments, change the font of the associated window from fixed-spaced to
349 cfa37a7b 2004-04-10 devnull proportional-spaced or
350 cfa37a7b 2004-04-10 devnull .I vice
351 cfa37a7b 2004-04-10 devnull .IR versa .
352 cfa37a7b 2004-04-10 devnull Given a file name argument, change the font of the window to that stored in the named file.
353 cfa37a7b 2004-04-10 devnull If the file name argument is prefixed by
354 cfa37a7b 2004-04-10 devnull .B var
355 cfa37a7b 2004-04-10 devnull .RB ( fix ),
356 cfa37a7b 2004-04-10 devnull also set the default proportional-spaced (fixed-spaced) font for future use to that font.
357 cfa37a7b 2004-04-10 devnull Other existing windows are unaffected.
358 cfa37a7b 2004-04-10 devnull .TP
359 cfa37a7b 2004-04-10 devnull .B Get
360 cfa37a7b 2004-04-10 devnull Load file into window, replacing previous contents (after checking for dirtiness as in
361 cfa37a7b 2004-04-10 devnull .BR Del ).
362 cfa37a7b 2004-04-10 devnull With no argument, use the existing file name of the window.
363 cfa37a7b 2004-04-10 devnull Given an argument, use that file but do not change the window's file name.
364 cfa37a7b 2004-04-10 devnull .TP
365 cfa37a7b 2004-04-10 devnull .B ID
366 cfa37a7b 2004-04-10 devnull Print window ID number
367 cfa37a7b 2004-04-10 devnull .RI ( q.v. ).
368 cfa37a7b 2004-04-10 devnull .TP
369 cfa37a7b 2004-04-10 devnull .B Incl
370 cfa37a7b 2004-04-10 devnull When opening `include' files
371 cfa37a7b 2004-04-10 devnull (those enclosed in
372 cfa37a7b 2004-04-10 devnull .BR <> )
373 cfa37a7b 2004-04-10 devnull with button 3,
374 cfa37a7b 2004-04-10 devnull .I acme
375 cfa37a7b 2004-04-10 devnull searches in directories
376 cfa37a7b 2004-04-10 devnull .B /$objtype/include
377 cfa37a7b 2004-04-10 devnull and
378 cfa37a7b 2004-04-10 devnull .BR /sys/include .
379 cfa37a7b 2004-04-10 devnull .B Incl
380 cfa37a7b 2004-04-10 devnull adds its arguments to a supplementary list of include directories, analogous to
381 cfa37a7b 2004-04-10 devnull the
382 cfa37a7b 2004-04-10 devnull .B -I
383 cfa37a7b 2004-04-10 devnull option to the compilers.
384 cfa37a7b 2004-04-10 devnull This list is per-window and is inherited when windows are created by actions in that window, so
385 cfa37a7b 2004-04-10 devnull .I Incl
386 cfa37a7b 2004-04-10 devnull is most usefully applied to a directory containing relevant source.
387 cfa37a7b 2004-04-10 devnull With no arguments,
388 cfa37a7b 2004-04-10 devnull .I Incl
389 cfa37a7b 2004-04-10 devnull prints the supplementary list.
390 cfa37a7b 2004-04-10 devnull This command is largely superseded by plumbing
391 cfa37a7b 2004-04-10 devnull (see
392 d32deab1 2020-08-16 rsc .MR plumb (7) ).
393 cfa37a7b 2004-04-10 devnull .TP
394 b9771a80 2005-01-30 devnull .B Indent
395 b9771a80 2005-01-30 devnull Set the autoindent mode according to the argument:
396 b9771a80 2005-01-30 devnull .B on
397 b9771a80 2005-01-30 devnull and
398 b9771a80 2005-01-30 devnull .B off
399 b9771a80 2005-01-30 devnull set the mode for the current window;
400 b9771a80 2005-01-30 devnull .B ON
401 b9771a80 2005-01-30 devnull and
402 b9771a80 2005-01-30 devnull .B OFF
403 9952c0eb 2007-06-15 devnull set the mode for all existing and future windows.
404 b9771a80 2005-01-30 devnull .TP
405 cfa37a7b 2004-04-10 devnull .B Kill
406 cfa37a7b 2004-04-10 devnull Send a
407 cfa37a7b 2004-04-10 devnull .B kill
408 cfa37a7b 2004-04-10 devnull note to
409 cfa37a7b 2004-04-10 devnull .IR acme -initiated
410 cfa37a7b 2004-04-10 devnull commands named as arguments.
411 b9771a80 2005-01-30 devnull .TP
412 b9771a80 2005-01-30 devnull .B Load
413 b9771a80 2005-01-30 devnull Restore the state of
414 b9771a80 2005-01-30 devnull .I acme
415 b9771a80 2005-01-30 devnull from a file (default
416 bfe4377e 2020-05-19 rsc .BR $HOME/acme.dump )
417 b9771a80 2005-01-30 devnull created by the
418 b9771a80 2005-01-30 devnull .B Dump
419 b9771a80 2005-01-30 devnull command.
420 cfa37a7b 2004-04-10 devnull .TP
421 cfa37a7b 2004-04-10 devnull .B Local
422 058b0118 2005-01-03 devnull In the Plan 9
423 058b0118 2005-01-03 devnull .IR acme ,
424 f264bbcd 2020-01-06 rsc this prefix causes a command to be run in
425 058b0118 2005-01-03 devnull .IR acme 's own
426 058b0118 2005-01-03 devnull file name space and environment variable group.
427 058b0118 2005-01-03 devnull On Unix this is impossible.
428 058b0118 2005-01-03 devnull .B Local
429 058b0118 2005-01-03 devnull is recognized as a prefix, but has no effect on the command being executed.
430 058b0118 2005-01-03 devnull .\" .TP
431 058b0118 2005-01-03 devnull .\" .B Local
432 058b0118 2005-01-03 devnull .\" When prefixed to a command
433 058b0118 2005-01-03 devnull .\" run the
434 058b0118 2005-01-03 devnull .\" command in the same file name space and environment variable group as
435 058b0118 2005-01-03 devnull .\" .IR acme .
436 058b0118 2005-01-03 devnull .\" The environment of the command
437 058b0118 2005-01-03 devnull .\" is restricted but is sufficient to run
438 058b0118 2005-01-03 devnull .\" .IR bind (1),
439 058b0118 2005-01-03 devnull .\" .IR 9fs
440 058b0118 2005-01-03 devnull .\" (see
441 058b0118 2005-01-03 devnull .\" .IR srv (4)),
442 058b0118 2005-01-03 devnull .\" .IR import (4),
443 058b0118 2005-01-03 devnull .\" etc.,
444 058b0118 2005-01-03 devnull .\" and to set environment variables such as
445 058b0118 2005-01-03 devnull .\" .BR $objtype .
446 cfa37a7b 2004-04-10 devnull .TP
447 cfa37a7b 2004-04-10 devnull .B Look
448 cfa37a7b 2004-04-10 devnull Search in body for occurrence of literal text indicated by the argument or,
449 cfa37a7b 2004-04-10 devnull if none is given, by the selected text in the body.
450 cfa37a7b 2004-04-10 devnull .TP
451 cfa37a7b 2004-04-10 devnull .B New
452 cfa37a7b 2004-04-10 devnull Make new window. With arguments, load the named files into windows.
453 cfa37a7b 2004-04-10 devnull .TP
454 cfa37a7b 2004-04-10 devnull .B Newcol
455 cfa37a7b 2004-04-10 devnull Make new column.
456 cfa37a7b 2004-04-10 devnull .TP
457 cfa37a7b 2004-04-10 devnull .B Paste
458 cfa37a7b 2004-04-10 devnull Replace most recently selected text with contents of snarf buffer.
459 cfa37a7b 2004-04-10 devnull .TP
460 cfa37a7b 2004-04-10 devnull .B Put
461 cfa37a7b 2004-04-10 devnull Write window to the named file.
462 cfa37a7b 2004-04-10 devnull With no argument, write to the file named in the tag of the window.
463 cfa37a7b 2004-04-10 devnull .TP
464 cfa37a7b 2004-04-10 devnull .B Putall
465 cfa37a7b 2004-04-10 devnull Write all dirty windows whose names indicate existing regular files.
466 cfa37a7b 2004-04-10 devnull .TP
467 cfa37a7b 2004-04-10 devnull .B Redo
468 cfa37a7b 2004-04-10 devnull Complement of
469 cfa37a7b 2004-04-10 devnull .BR Undo .
470 cfa37a7b 2004-04-10 devnull .TP
471 cfa37a7b 2004-04-10 devnull .B Send
472 cfa37a7b 2004-04-10 devnull Append selected text or snarf buffer to end of body; used mainly with
473 cfa37a7b 2004-04-10 devnull .IR win .
474 cfa37a7b 2004-04-10 devnull .TP
475 cfa37a7b 2004-04-10 devnull .B Snarf
476 cfa37a7b 2004-04-10 devnull Place selected text in snarf buffer.
477 cfa37a7b 2004-04-10 devnull .TP
478 cfa37a7b 2004-04-10 devnull .B Sort
479 cfa37a7b 2004-04-10 devnull Arrange the windows in the column from top to bottom in lexicographical
480 cfa37a7b 2004-04-10 devnull order based on their names.
481 cfa37a7b 2004-04-10 devnull .TP
482 b4704695 2023-01-26 op .B Spaces
483 b4704695 2023-01-26 op Set the spacesindent mode according to the argument:
484 b4704695 2023-01-26 op .B on
485 b4704695 2023-01-26 op and
486 b4704695 2023-01-26 op .B off
487 b4704695 2023-01-26 op set the mode for the current window;
488 b4704695 2023-01-26 op .B ON
489 b4704695 2023-01-26 op and
490 b4704695 2023-01-26 op .B OFF
491 b4704695 2023-01-26 op set the mode for all existing and future windows.
492 b4704695 2023-01-26 op .TP
493 cfa37a7b 2004-04-10 devnull .B Tab
494 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
495 cfa37a7b 2004-04-10 devnull character.
496 cfa37a7b 2004-04-10 devnull With no arguments, it prints the current value.
497 cfa37a7b 2004-04-10 devnull .TP
498 cfa37a7b 2004-04-10 devnull .B Undo
499 cfa37a7b 2004-04-10 devnull Undo last textual change or set of changes.
500 cfa37a7b 2004-04-10 devnull .TP
501 cfa37a7b 2004-04-10 devnull .B Zerox
502 cfa37a7b 2004-04-10 devnull Create a copy of the window containing most recently selected text.
503 91fb6aaa 2007-01-27 devnull .TP
504 91fb6aaa 2007-01-27 devnull .B <|>
505 91fb6aaa 2007-01-27 devnull If a regular shell command is preceded by a
506 91fb6aaa 2007-01-27 devnull .BR < ,
507 91fb6aaa 2007-01-27 devnull .BR | ,
508 91fb6aaa 2007-01-27 devnull or
509 91fb6aaa 2007-01-27 devnull .B >
510 91fb6aaa 2007-01-27 devnull character, the selected text in the body of the window is affected by the
511 91fb6aaa 2007-01-27 devnull I/O from the command.
512 91fb6aaa 2007-01-27 devnull The
513 91fb6aaa 2007-01-27 devnull .B <
514 91fb6aaa 2007-01-27 devnull character causes the selection to be replaced by the standard output
515 91fb6aaa 2007-01-27 devnull of the command;
516 91fb6aaa 2007-01-27 devnull .B >
517 91fb6aaa 2007-01-27 devnull causes the selection to be sent as standard input to the command; and
518 91fb6aaa 2007-01-27 devnull .B |
519 91fb6aaa 2007-01-27 devnull does both at once, `piping' the selection through the command and
520 91fb6aaa 2007-01-27 devnull replacing it with the output.
521 cfa37a7b 2004-04-10 devnull .PP
522 cfa37a7b 2004-04-10 devnull A common place to store text for commands is in the tag; in fact
523 cfa37a7b 2004-04-10 devnull .I acme
524 cfa37a7b 2004-04-10 devnull maintains a set of commands appropriate to the state of the window
525 cfa37a7b 2004-04-10 devnull to the left of the bar in the tag.
526 cfa37a7b 2004-04-10 devnull .PP
527 cfa37a7b 2004-04-10 devnull If the text indicated with button 2 is not a recognized built-in, it is executed as
528 cfa37a7b 2004-04-10 devnull a shell command. For example, indicating
529 cfa37a7b 2004-04-10 devnull .B date
530 cfa37a7b 2004-04-10 devnull with button 2 runs
531 d32deab1 2020-08-16 rsc .MR date (1) .
532 cfa37a7b 2004-04-10 devnull The standard
533 cfa37a7b 2004-04-10 devnull and error outputs of commands are sent to the error window associated with
534 cfa37a7b 2004-04-10 devnull the directory from which the command was run, which will be created if
535 cfa37a7b 2004-04-10 devnull necessary.
536 cfa37a7b 2004-04-10 devnull For example, in a window
537 c8b6342d 2005-01-13 devnull .B /etc/passwd
538 cfa37a7b 2004-04-10 devnull executing
539 cfa37a7b 2004-04-10 devnull .B pwd
540 cfa37a7b 2004-04-10 devnull will produce the output
541 c8b6342d 2005-01-13 devnull .B /etc
542 cfa37a7b 2004-04-10 devnull in a (possibly newly-created) window labeled
543 c8b6342d 2005-01-13 devnull .BR /etc/+Errors ;
544 cfa37a7b 2004-04-10 devnull in a window containing
545 c8b6342d 2005-01-13 devnull .B /home/rob/sam/sam.c
546 cfa37a7b 2004-04-10 devnull executing
547 cfa37a7b 2004-04-10 devnull .B mk
548 cfa37a7b 2004-04-10 devnull will run
549 d32deab1 2020-08-16 rsc .MR mk (1)
550 cfa37a7b 2004-04-10 devnull in
551 c8b6342d 2005-01-13 devnull .BR /home/rob/sam ,
552 cfa37a7b 2004-04-10 devnull producing output in a window labeled
553 c8b6342d 2005-01-13 devnull .BR /home/rob/sam/+Errors .
554 cfa37a7b 2004-04-10 devnull The environment of such commands contains the variable
555 cfa37a7b 2004-04-10 devnull .B $%
556 2589c5c6 2012-11-26 rsc and
557 2589c5c6 2012-11-26 rsc .B $samfile
558 c8b6342d 2005-01-13 devnull with value set to the filename of the window in which the command is run,
559 c8b6342d 2005-01-13 devnull and
560 c8b6342d 2005-01-13 devnull .B $winid
561 c8b6342d 2005-01-13 devnull set to the window's id number
562 c8b6342d 2005-01-13 devnull (see
563 d32deab1 2020-08-16 rsc .MR acme (4) ).
564 81c2c5e7 2012-10-21 rsc .PP
565 81c2c5e7 2012-10-21 rsc The environment variable
566 81c2c5e7 2012-10-21 rsc .B $acmeshell
567 81c2c5e7 2012-10-21 rsc determines which shell is used to execute such commands; the
568 d32deab1 2020-08-16 rsc .MR rc (1)
569 f264bbcd 2020-01-06 rsc shell is used by default.
570 cfa37a7b 2004-04-10 devnull .SS "Mouse button 3
571 cfa37a7b 2004-04-10 devnull Pointing at text with button 3 instructs
572 cfa37a7b 2004-04-10 devnull .I acme
573 cfa37a7b 2004-04-10 devnull to locate or acquire the file, string, etc. described by the indicated text and
574 cfa37a7b 2004-04-10 devnull its context.
575 cfa37a7b 2004-04-10 devnull This description follows the actions taken when
576 cfa37a7b 2004-04-10 devnull button 3 is released after sweeping out some text.
577 cfa37a7b 2004-04-10 devnull In the description,
578 cfa37a7b 2004-04-10 devnull .I text
579 cfa37a7b 2004-04-10 devnull refers to the text of the original sweep or, if it was null, the result of
580 cfa37a7b 2004-04-10 devnull applying the same expansion rules that apply to button 2 actions.
581 cfa37a7b 2004-04-10 devnull .PP
582 cfa37a7b 2004-04-10 devnull If the text names an existing window,
583 cfa37a7b 2004-04-10 devnull .I acme
584 cfa37a7b 2004-04-10 devnull moves the mouse cursor to the selected text in the body of that window.
585 cfa37a7b 2004-04-10 devnull If the text names an existing file with no associated window,
586 cfa37a7b 2004-04-10 devnull .I acme
587 cfa37a7b 2004-04-10 devnull loads the file into a new window and moves the mouse there.
588 cfa37a7b 2004-04-10 devnull If the text is a file name contained in angle brackets,
589 cfa37a7b 2004-04-10 devnull .I acme
590 cfa37a7b 2004-04-10 devnull loads the indicated include file from the directory appropriate to the
591 cfa37a7b 2004-04-10 devnull suffix of the file name of the window holding the text.
592 cfa37a7b 2004-04-10 devnull (The
593 cfa37a7b 2004-04-10 devnull .B Incl
594 cfa37a7b 2004-04-10 devnull command adds directories to the standard list.)
595 cfa37a7b 2004-04-10 devnull .PP
596 cfa37a7b 2004-04-10 devnull If the text begins with a colon, it is taken to be an address, in
597 cfa37a7b 2004-04-10 devnull the style of
598 d32deab1 2020-08-16 rsc .MR sam (1) ,
599 cfa37a7b 2004-04-10 devnull within the body of the window containing the text.
600 cfa37a7b 2004-04-10 devnull The address is evaluated, the resulting text highlighted, and the mouse moved to it.
601 cfa37a7b 2004-04-10 devnull Thus, in
602 cfa37a7b 2004-04-10 devnull .IR acme ,
603 cfa37a7b 2004-04-10 devnull one must type
604 cfa37a7b 2004-04-10 devnull .B :/regexp
605 cfa37a7b 2004-04-10 devnull or
606 cfa37a7b 2004-04-10 devnull .B :127
607 cfa37a7b 2004-04-10 devnull not just
608 cfa37a7b 2004-04-10 devnull .B /regexp
609 cfa37a7b 2004-04-10 devnull or
610 cfa37a7b 2004-04-10 devnull .BR 127 .
611 cfa37a7b 2004-04-10 devnull (There is an easier way to locate literal text; see below.)
612 cfa37a7b 2004-04-10 devnull .PP
613 cfa37a7b 2004-04-10 devnull If the text is a file name followed by a colon and an address,
614 cfa37a7b 2004-04-10 devnull .I acme
615 cfa37a7b 2004-04-10 devnull loads the file and evaluates the address. For example, clicking button 3 anywhere
616 cfa37a7b 2004-04-10 devnull in the text
617 cfa37a7b 2004-04-10 devnull .B file.c:27
618 cfa37a7b 2004-04-10 devnull will open
619 cfa37a7b 2004-04-10 devnull .BR file.c ,
620 cfa37a7b 2004-04-10 devnull select line
621 cfa37a7b 2004-04-10 devnull 27, and put the mouse at the beginning of the line. The rules about Error
622 cfa37a7b 2004-04-10 devnull files, directories, and so on all combine to make this an efficient way to
623 cfa37a7b 2004-04-10 devnull investigate errors from compilers, etc.
624 cfa37a7b 2004-04-10 devnull .PP
625 cfa37a7b 2004-04-10 devnull If the text is not an address or file, it is taken to
626 cfa37a7b 2004-04-10 devnull be literal text, which is then searched for in the body of the window
627 cfa37a7b 2004-04-10 devnull in which button 3 was clicked. If a match is found, it is selected and the mouse is
628 cfa37a7b 2004-04-10 devnull moved there. Thus, to search for occurrences of a word in a file,
629 cfa37a7b 2004-04-10 devnull just click button 3 on the word. Because of the rule of using the
630 cfa37a7b 2004-04-10 devnull selection as the button 3 action, subsequent clicks will find subsequent
631 cfa37a7b 2004-04-10 devnull occurrences without moving the mouse.
632 cfa37a7b 2004-04-10 devnull .PP
633 cfa37a7b 2004-04-10 devnull In all these actions, the mouse motion is not done if the text is a null string
634 cfa37a7b 2004-04-10 devnull within a non-null selected string in the tag, so that (for example) complex regular expressions
635 cfa37a7b 2004-04-10 devnull may be selected and applied repeatedly to the
636 cfa37a7b 2004-04-10 devnull body by just clicking button 3 over them.
637 cfa37a7b 2004-04-10 devnull .SS "Chords of mouse buttons
638 cfa37a7b 2004-04-10 devnull Several operations are bound to multiple-button actions.
639 cfa37a7b 2004-04-10 devnull After selecting text, with button 1 still down, pressing button 2
640 cfa37a7b 2004-04-10 devnull executes
641 cfa37a7b 2004-04-10 devnull .B Cut
642 cfa37a7b 2004-04-10 devnull and button 3 executes
643 cfa37a7b 2004-04-10 devnull .BR Paste .
644 cfa37a7b 2004-04-10 devnull After clicking one button, the other undoes
645 cfa37a7b 2004-04-10 devnull the first; thus (while holding down button 1) 2 followed by 3 is a
646 cfa37a7b 2004-04-10 devnull .B Snarf
647 cfa37a7b 2004-04-10 devnull that leaves the file undirtied;
648 cfa37a7b 2004-04-10 devnull 3 followed by 2 is a no-op.
649 cfa37a7b 2004-04-10 devnull These actions also apply to text selected by double-clicking because
650 cfa37a7b 2004-04-10 devnull the double-click expansion is made when the second
651 cfa37a7b 2004-04-10 devnull click starts, not when it ends.
652 cfa37a7b 2004-04-10 devnull .PP
653 cfa37a7b 2004-04-10 devnull Commands may be given extra arguments by a mouse chord with buttons 2 and 1.
654 cfa37a7b 2004-04-10 devnull While holding down button 2 on text to be executed as a command, clicking button 1
655 cfa37a7b 2004-04-10 devnull appends the text last pointed to by button 1 as a distinct final argument.
656 cfa37a7b 2004-04-10 devnull For example, to search for literal
657 cfa37a7b 2004-04-10 devnull .B text
658 cfa37a7b 2004-04-10 devnull one may execute
659 cfa37a7b 2004-04-10 devnull .B Look text
660 cfa37a7b 2004-04-10 devnull with button 2 or instead point at
661 cfa37a7b 2004-04-10 devnull .B text
662 cfa37a7b 2004-04-10 devnull with button 1 in any window, release button 1,
663 cfa37a7b 2004-04-10 devnull then execute
664 cfa37a7b 2004-04-10 devnull .BR Look ,
665 cfa37a7b 2004-04-10 devnull clicking button 1 while 2 is held down.
666 cfa37a7b 2004-04-10 devnull .PP
667 cfa37a7b 2004-04-10 devnull When an external command (e.g.
668 d32deab1 2020-08-16 rsc .MR echo (1) )
669 cfa37a7b 2004-04-10 devnull is executed this way, the extra argument is passed as expected and an
670 cfa37a7b 2004-04-10 devnull environment variable
671 cfa37a7b 2004-04-10 devnull .B $acmeaddr
672 cfa37a7b 2004-04-10 devnull is created that holds, in the form interpreted by button 3,
673 cfa37a7b 2004-04-10 devnull the fully-qualified address of the extra argument.
674 35abfa1b 2017-07-16 rsc .SS "Simulated buttons
675 35abfa1b 2017-07-16 rsc For systems without a three-button mouse, the keyboard modifier
676 35abfa1b 2017-07-16 rsc keys can be used to modify the effect of the main mouse button.
677 35abfa1b 2017-07-16 rsc On Unix systems, the Control key changes the main button to button 2,
678 35abfa1b 2017-07-16 rsc and the Alt key changes it to button 3.
679 35abfa1b 2017-07-16 rsc On Mac systems, the Option key changes the main button to button 2,
680 35abfa1b 2017-07-16 rsc and the Command key changes it to button 3.
681 35abfa1b 2017-07-16 rsc Pressing the key after the button is held down adds the button to form
682 35abfa1b 2017-07-16 rsc a chord, so that for example on Macs selecting text with the trackpad
683 35abfa1b 2017-07-16 rsc button and then typing Option without letting go of the button will
684 35abfa1b 2017-07-16 rsc cause a 1-2 chord, cutting the selection.
685 35abfa1b 2017-07-16 rsc On Mac systems, the usual keyboard shortcuts
686 35abfa1b 2017-07-16 rsc Command-C, -V, -X, and -Z invoke
687 f264bbcd 2020-01-06 rsc copy, paste, cut, and undo,
688 35abfa1b 2017-07-16 rsc and Command-Shift-Z invokes redo,
689 35abfa1b 2017-07-16 rsc as in other programs.
690 35abfa1b 2017-07-16 rsc Especially on Mac laptops, these keyboard shortcuts are
691 35abfa1b 2017-07-16 rsc typically much less awkward than the equivalent chords.
692 cfa37a7b 2004-04-10 devnull .SS "Support programs
693 cfa37a7b 2004-04-10 devnull .I Win
694 cfa37a7b 2004-04-10 devnull creates a new
695 cfa37a7b 2004-04-10 devnull .I acme
696 cfa37a7b 2004-04-10 devnull window and runs a
697 cfa37a7b 2004-04-10 devnull .I command
698 cfa37a7b 2004-04-10 devnull (default
699 c8b6342d 2005-01-13 devnull .BR $SHELL )
700 cfa37a7b 2004-04-10 devnull in it, turning the window into something analogous to an
701 d32deab1 2020-08-16 rsc .MR 9term (1)
702 cfa37a7b 2004-04-10 devnull window.
703 cfa37a7b 2004-04-10 devnull Executing text in a
704 cfa37a7b 2004-04-10 devnull .I win
705 cfa37a7b 2004-04-10 devnull window with button
706 cfa37a7b 2004-04-10 devnull 2 is similar to using
707 cfa37a7b 2004-04-10 devnull .BR Send .
708 ba31ab30 2011-04-27 rsc .I Win
709 ba31ab30 2011-04-27 rsc windows follow the same scrolling heuristic as in
710 d32deab1 2020-08-16 rsc .MR 9term (1) :
711 ba31ab30 2011-04-27 rsc the window scrolls on output only if the window is displaying the end of the buffer.
712 cfa37a7b 2004-04-10 devnull .PP
713 cfa37a7b 2004-04-10 devnull .I Awd
714 cfa37a7b 2004-04-10 devnull loads the tag line of its window with the directory in which it's running, suffixed
715 cfa37a7b 2004-04-10 devnull .BI - label
716 cfa37a7b 2004-04-10 devnull (default
717 cfa37a7b 2004-04-10 devnull .BR rc );
718 cfa37a7b 2004-04-10 devnull it is
719 cfa37a7b 2004-04-10 devnull intended to be executed by a
720 cfa37a7b 2004-04-10 devnull .B cd
721 cfa37a7b 2004-04-10 devnull function for use in
722 cfa37a7b 2004-04-10 devnull .I win
723 cfa37a7b 2004-04-10 devnull windows. An example definition is
724 cfa37a7b 2004-04-10 devnull .EX
725 cfa37a7b 2004-04-10 devnull fn cd { builtin cd $1 && awd $sysname }
726 cfa37a7b 2004-04-10 devnull .EE
727 cfa37a7b 2004-04-10 devnull .SS "Applications and guide files
728 cfa37a7b 2004-04-10 devnull In the directory
729 cfa37a7b 2004-04-10 devnull .B /acme
730 cfa37a7b 2004-04-10 devnull live several subdirectories, each corresponding to a program or
731 cfa37a7b 2004-04-10 devnull set of related programs that employ
732 cfa37a7b 2004-04-10 devnull .I acme's
733 cfa37a7b 2004-04-10 devnull user interface.
734 cfa37a7b 2004-04-10 devnull Each subdirectory includes source, binaries, and a
735 cfa37a7b 2004-04-10 devnull .B readme
736 cfa37a7b 2004-04-10 devnull file for further information.
737 cfa37a7b 2004-04-10 devnull It also includes a
738 cfa37a7b 2004-04-10 devnull .BR guide ,
739 cfa37a7b 2004-04-10 devnull a text file holding sample commands to invoke the programs.
740 cfa37a7b 2004-04-10 devnull The idea is to find an example in the guide that best matches
741 cfa37a7b 2004-04-10 devnull the job at hand, edit it to suit, and execute it.
742 cfa37a7b 2004-04-10 devnull .PP
743 cfa37a7b 2004-04-10 devnull Whenever a command is executed by
744 cfa37a7b 2004-04-10 devnull .IR acme ,
745 cfa37a7b 2004-04-10 devnull the default search path includes the directory of the window containing
746 cfa37a7b 2004-04-10 devnull the command and its subdirectory
747 cfa37a7b 2004-04-10 devnull .BR $cputype .
748 cfa37a7b 2004-04-10 devnull The program directories in
749 cfa37a7b 2004-04-10 devnull .B /acme
750 cfa37a7b 2004-04-10 devnull contain appropriately labeled subdirectories of binaries,
751 cfa37a7b 2004-04-10 devnull so commands named
752 cfa37a7b 2004-04-10 devnull in the guide files will be found automatically when run.
753 cfa37a7b 2004-04-10 devnull Also,
754 cfa37a7b 2004-04-10 devnull .I acme
755 cfa37a7b 2004-04-10 devnull binds the directories
756 cfa37a7b 2004-04-10 devnull .B /acme/bin
757 cfa37a7b 2004-04-10 devnull and
758 cfa37a7b 2004-04-10 devnull .B /acme/bin/$cputype
759 cfa37a7b 2004-04-10 devnull to the end of
760 cfa37a7b 2004-04-10 devnull .B /bin
761 cfa37a7b 2004-04-10 devnull when it starts; this is where
762 cfa37a7b 2004-04-10 devnull .IR acme -specific
763 cfa37a7b 2004-04-10 devnull programs such as
764 cfa37a7b 2004-04-10 devnull .I win
765 cfa37a7b 2004-04-10 devnull and
766 cfa37a7b 2004-04-10 devnull .I awd
767 cfa37a7b 2004-04-10 devnull reside.
768 cfa37a7b 2004-04-10 devnull .SH FILES
769 bfe4377e 2020-05-19 rsc .TF $HOME/acme.dump
770 cfa37a7b 2004-04-10 devnull .TP
771 bfe4377e 2020-05-19 rsc .B $HOME/acme.dump
772 cfa37a7b 2004-04-10 devnull default file for
773 cfa37a7b 2004-04-10 devnull .B Dump
774 cfa37a7b 2004-04-10 devnull and
775 cfa37a7b 2004-04-10 devnull .BR Load ;
776 cfa37a7b 2004-04-10 devnull also where state is written if
777 cfa37a7b 2004-04-10 devnull .I acme
778 cfa37a7b 2004-04-10 devnull dies or is killed unexpectedly, e.g. by deleting its window.
779 cfa37a7b 2004-04-10 devnull .TP
780 cfa37a7b 2004-04-10 devnull .B /acme/*/guide
781 cfa37a7b 2004-04-10 devnull template files for applications
782 cfa37a7b 2004-04-10 devnull .TP
783 cfa37a7b 2004-04-10 devnull .B /acme/*/readme
784 cfa37a7b 2004-04-10 devnull informal documentation for applications
785 cfa37a7b 2004-04-10 devnull .TP
786 cfa37a7b 2004-04-10 devnull .B /acme/*/src
787 cfa37a7b 2004-04-10 devnull source for applications
788 cfa37a7b 2004-04-10 devnull .TP
789 cfa37a7b 2004-04-10 devnull .B /acme/*/mips
790 cfa37a7b 2004-04-10 devnull MIPS-specific binaries for applications
791 cfa37a7b 2004-04-10 devnull .SH SOURCE
792 c3674de4 2005-01-11 devnull .B \*9/src/cmd/acme
793 cfa37a7b 2004-04-10 devnull .br
794 c3674de4 2005-01-11 devnull .B \*9/src/cmd/9term/win.c
795 cfa37a7b 2004-04-10 devnull .br
796 c3674de4 2005-01-11 devnull .B \*9/bin/awd
797 cfa37a7b 2004-04-10 devnull .SH SEE ALSO
798 d32deab1 2020-08-16 rsc .MR acme (4)
799 cfa37a7b 2004-04-10 devnull .br
800 cfa37a7b 2004-04-10 devnull Rob Pike,
801 cfa37a7b 2004-04-10 devnull .I
802 cfa37a7b 2004-04-10 devnull Acme: A User Interface for Programmers.
803 cfa37a7b 2004-04-10 devnull .SH BUGS
804 cfa37a7b 2004-04-10 devnull With the
805 cfa37a7b 2004-04-10 devnull .B -l
806 cfa37a7b 2004-04-10 devnull option or
807 cfa37a7b 2004-04-10 devnull .B Load
808 cfa37a7b 2004-04-10 devnull command,
809 cfa37a7b 2004-04-10 devnull the recreation of windows under control of external programs
810 cfa37a7b 2004-04-10 devnull such as
811 cfa37a7b 2004-04-10 devnull .I win
812 cfa37a7b 2004-04-10 devnull is just to rerun the command; information may be lost.