Name
Date
Size
#Lines
LOC

..--

bin/rc/H--4634

lib/H--8070

readme.acmeH A D27-Apr-20024.6 KiB10385

readme.rioH A D27-Apr-20026.2 KiB179140

readme.acme

1Welcome to acme, the editor/shell/window system hybrid.  Acme is a
2complete environment you can use to edit, run programs, browse the
3file system, etc.
4
5You can scroll the text this window by moving the mouse into
6the window (no clicking necessary) and typing the up and down
7arrows.
8
9When you start Acme, you see several windows layered into two
10columns. Above each window, you can see a ``tag line'' (in blue). The
11first thing to notice is that all the text you see is just that:
12text. You can edit anything at will.
13
14For example, in the left column is a directory window.
15If you look at the window's tag line, you will see that it contains
16
17	/usr/glenda/ Del Snarf Get | Look
18
19(This might be truncated if the column is narrow.)
20That is just text.
21
22Each mouse button (1, 2, 3, from left to right) does a different
23thing in Acme:
24
25 *	Button 1 can be used to select text (press it, sweep, release it),
26	and also to select the point where text would be inserted in the
27	window. Use it now in your /usr/glenda window.
28 *	Button 2 can be used to execute things.  For example, use button 1
29	to type "ls -l" before "lib/" in the window showing
30	/usr/glenda.  Now use button 2 to select "ls -l lib/" (press
31	it, select, release it).  As you can see, button 2 means
32	"execute this".
33 *	Button 3 can be used to get things. For example, click button 3 on
34	"lib/" within the "/usr/glenda" window. Can you see how a new window
35	shows the contents of "/usr/glenda/lib"? Button 3 can also be used
36	to search within the body of a window. Just click button 3 on the
37	thing you want to search. Again, you can select something with
38	button 1 and then use button 3 on the selection.
39
40You can double-click with button 1 to select words; a double click at
41the end or beginning of a line selects the whole line.  Once you have
42text selected, you can click on it with button 2 to execute the
43selected text.  A single click of button 2 would execute the word
44clicked as a command.
45
46Now let's pay attention to the tag line once more. As you can see,
47the left part has a path. That is the name for the window and shows
48also the directory for the thing shown (file/directory/program
49output). When you execute something using button 2, the current
50directory for the command is the directory shown in the left part of
51the tag (if the thing shown is a file, its directory is used).
52
53As you saw before in the example, there are windows labeled
54"/dir/+Errors", that is where Acme shows the output of a command
55executed in "/dir".
56
57Another thing you can see is that tag lines contain words like "New",
58"Del", "Snarf", etc. Those are commands understood (implemented) by
59Acme. When you request execution of one of them, Acme does the job.
60For example, click with button 2 on "Del" in the
61"/usr/glenda/+Errors" window: it's gone.
62
63The commands shown by Acme are just text and by no means special. Try
64to type "Del" within the body of the window "/usr/glenda", and then
65click (button-2) on it.
66
67These are some commands understood by Acme:
68 *	Newcol: create a new column of windows
69 *	Delcol: delete a column
70 *	New: create a new window (edit it's tag to be a file name and you
71	would be creating a new file; you would need to click on "Put" to
72	put the file in the file system).
73 *	Put: write the body to disk. The file is the one named in the tag.
74 *	Get: refresh the body (e.g. if it's a directory, reread it and
75	show it).
76 *	Snarf: What other window systems call "Copy".
77 *	Paste: Can you guess it?
78 *	Exit: exit acme
79
80Acme likes to place new windows itself. If you prefer to change the
81layout of a window, you only need to drag the layout box at the left
82of the tag line and drop it somewhere else. The point where you drop
83it selects the column where the window is to be placed now, as well
84as the line where the window should start. You can also click the
85layout box to enlarge its window a small amount (button 1), as much
86as possible without obscuring other tag lines in the column (button
872), and to fill the whole column (button 3). You can get your other
88windows back by button-1- or button-2-clicking the layout box.
89
90This is mostly what you need to get started with Acme. You are
91missing a very useful feature: using combinations (chords) of mouse
92buttons to do things. You can cut, paste, snarf, and pass arguments
93to programs using these mouse chords. You can read this in the
94acme(1) manual page, but it's actually extremely simple: Select a
95region with button 1 but don't release the button. Now clicking
96button 2 deletes the selected text (putting it into the snarf
97buffer); clicking button 3 replaces the selected text with the snarf
98buffer. That's it!
99
100For more information, read /sys/doc/acme/acme.ps (you can just
101button-3 click on that string to view the file).
102
103

readme.rio

1Rio is the Plan 9 window system.
2
3To read more of this window, the up and down arrows
4scroll the text up and down half screens.
5
6To effectively use rio, you need at least a three
7button mouse.  If you only have a two button mouse you
8can emulate the middle button by holding down shift key
9whilst pressing the right button.
10
11Button 1, 2, and 3 are used to refer to the left,
12middle, and right buttons respectively.
13
14THE POP-UP MENU
15
16Pressing and holding down button 3 on the desktop or
17shell window will give you a menu with the following
18options:
19
20 * New - create a new window
21 * Resize - reshape a window
22 * Move - move a window without reshaping it
23 * Delete - close a window
24 * Hide - hides a window from display (it will appear
25   in this menu)
26 * <label> - the label of a hidden window,
27   selecting it unhides it
28
29You select an item by releasing the button over the
30menu item.  rio uses the same button that started an
31action throughout that operation.  If you press another
32button during the action the operation is aborted and
33any intermediate changes are reversed.
34
35The menu acts as a action verb selector which then
36requires an object (i.e.  window) to be picked to
37indicate which window the verb is to act on.  A further
38mouse action may then be required.
39
40EXAMPLES
41
42After selecting New, the cursor will change into a
43cross.  Using button 3 again, you should then drag out
44a rectangle to indicate the size and location of the
45new window.  When you release the button a new window
46will be created.
47
48New windows will contain the rc shell.  Invoking a rio
49program from the shell will allow that program to take
50over the window.  As there is no job control in the
51shell (e.g.  &, fg, bg), you just create another window
52if you want to run another program concurrently.
53
54To Resize a window, you select Resize, then click
55(remember using the same button that started the
56action, i.e.  button 3) on the window you want to
57resize.  The cursor will change to a cross-hair theat
58will allow you to drag out the desired shape of the
59window.
60
61After selecting Move, click and keep the button
62depressed over the window you want to move, then move
63the mouse to move the red rectangle that represents the
64new location you want.  Release the button to finish
65the action.
66
67Delete and Hide both operate by requiring you to click
68on the window you wish to respectively Delete or Hide.
69
70WINDOW CONTROL TIPS
71
72Clicking on a window brings it to the front.
73
74You can directly change the shape of a window by
75clicking and dragging on the edge or corner of the
76window border.  Button 1 or 2 will allow you to drag
77the edge or corner to a new size, and Button 3 will
78allow you to move the window.
79
80The pop-up menu remembers the last command chosen, so
81as a short cut you can just press and release button 3
82without moving the mouse between pressing and releasing
83to select the previous command again.
84
85BASIC TEXT CONTROL
86
87Unlike in other systems, the text cursor can only be
88controlled by the mouse or the side-effects of certain
89commands.
90
91Clicking with button 1 will move the text insertion
92point (indicated by an I-beam) to just before the
93character closest to the mouse pointer.  Dragging
94across a section of text will select that portion of
95text.  It may be useful to know that the insertion
96I-beam represents an empty selection (between two
97characters).  In text editors, the current selection is
98known as "dot".
99
100In the shell window button 2 will invoke a pop-up menu.
101Most of it's commands operate on dot.
102
103 * cut - moves the contents of the dot to the clipboard
104   if dot is non-empty
105 * paste - replaces dot with the contents of the clipboard
106 * snarf - copies dot to the clipboard
107 * plumb - sends dot (or text surrounding dot, if dot is
108   empty)to the plumber.
109 * send - completes the current input line with the dot,
110   if it is non-empty, or the contents of the clipboard.
111   If the dot is non-empty it does a snarf at the same time.
112 * scroll - toggles the automatic scrolling of the window
113   on output.
114
115Double-clicking will allow you to automatically select
116a section of text surrounding that point.  The
117selection is made by an analysis of appropriate
118delimeters.  A whole line is selected by
119double-clicking at either end of the line.  A quoted or
120bracketed selection is made by double-clicking just
121inside of the quote or bracket.
122
123SCROLLING
124
125The arrow keys will let you scroll up or down by half a
126page at a time.
127
128Clicking button 1 on the scrollbar scrolls up by half a
129page.  Button 3 scrolls down by half a page.  Button 2
130jumps to position in the document relative to the
131position on the scrollbar clicked.  Holding a button on
132the scrollbar will have the effect of invoking the
133clicking action continuously.
134
135The white elevator box on the scrollbar is sized
136proportionally to the proportion of the document that
137is currently visible.
138
139Scrolling does not affect the text cursor.
140
141RIO AND THE RC SHELL WINDOW
142
143Rc is a command interpreter for Plan 9 that provides
144similar facilities to UNIX's Bourne shell.  See the
145additional references at the end of this document for
146information specifically about rc.
147
148Rio provides some additional features that enhance the
149interface to programs that use the text console.  The
150rc shell command interpreter is one such program.
151
152Rc commands are typed after the prompt on the last line
153of the text buffer.  The commands are sent to rc only
154after each newline so line editing may be performed if
155desired.  You can move the cursor and edit the previous
156lines of commands and program output but none of this
157will be interpreted by rc shell.
158
159The interpretation of commands is supressed altogether
160when ESC is pressed to put the window in hold mode.
161The window border and text will change to dark blue to
162indicate the hold mode is active.  In this mode you can
163type multiple lines of commands and edit them.
164Pressing ESC again will release the hold and send the
165lines of text to the rc command interpreter.
166
167The DEL key sends an 'interrupt' note to all processes
168in the window's process group.  The usual intent is to
169terminate the execution of the current command.  It is
170also a convenient short cut for ensuring you have a
171fresh command prompt.
172
173FURTHER INFORMATION
174
175For further information, try the rio(1) manual page.
176Type "man rio" or click on rio(1) in either of these
177sentences and select plumb from the button 2 menu.
178
179