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