]> git.lizzy.rs Git - plan9front.git/blob - sys/man/6/keyboard
hget: add the -v option to produce progress on stderr, like old hget
[plan9front.git] / sys / man / 6 / keyboard
1 .TH KEYBOARD 6
2 .SH NAME
3 keyboard \- how to type characters
4 .SH DESCRIPTION
5 Keyboards are idiosyncratic.
6 It should be obvious how to type ordinary
7 .SM ASCII
8 characters,
9 backspace, tab, escape, and newline.
10 In Plan 9, the key labeled
11 .B Return
12 or
13 .B Enter
14 generates a newline
15 .RB ( 0x0A );
16 if there is a key labeled
17 .B Line
18 .BR Feed ,
19 it generates a carriage return
20 .RB ( 0x0D );
21 Plan 9 eschews CRLFs.
22 All control characters are typed in the usual way;
23 in particular, control-J is a line feed and control-M a carriage return.
24 On the PC and some other machines, the key labeled
25 .B Caps
26 .B Lock
27 acts as an additional control key.
28 .PP
29 The delete character
30 .RB ( 0x7F )
31 may be generated by a different key,
32 one near the extreme upper right of the keyboard.
33 On the Next it is the key labeled
34 .L *
35 (not the asterisk above the 8).
36 On the SLC and Sparcstation 2, delete is labeled
37 .B Num
38 .B Lock
39 (the key above
40 .B Backspace
41 labeled
42 .B Delete
43 functions as an additional backspace key).
44 On the other keyboards, the key labeled
45 .B Del
46 or
47 .B Delete
48 generates the delete character.
49 .PP
50 The view character
51 .RB ( 0x80 ),
52 used by
53 .IR rio (1),
54 .IR acme (1),
55 and
56 .IR sam (1),
57 causes windows to scroll forward.
58 It is generally somewhere near the lower right of the main key area.
59 The scroll character is generated by the
60 .B VIEW
61 key on the Gnot, the
62 .B Alt
63 .B Graph
64 key on the SLC, and the arrow key ↓
65 on the other terminals.
66 As a convenience for sloppy typists, some programs interpret → and ← keys,
67 which lie on either side of ↓, as view keys as well.
68 The arrow key ↑ scrolls backward.
69 .PP
70 Characters in Plan 9 are runes (see
71 .IR utf (6)).
72 Any rune can be typed using a compose key followed by several
73 other keys.
74 The compose key is also generally near the lower right of the main key area:
75 the
76 .B NUM PAD
77 key on the Gnot, the
78 .B Alternate
79 key on the Next, the
80 .B Compose
81 key on the SLC, the
82 .B Option
83 key on the Magnum, and either
84 .B Alt
85 key on the PC.
86 After typing the compose key, type a lower case
87 .L x
88 and up to six hexadecimal characters (digits and
89 .L a
90 to
91 .LR f )
92 followed by a semicolon (if the sequence is less
93 than six digits long) to type a single rune with the
94 value represented by the typed number.
95 There are shorthands for many characters, comprising
96 the compose key followed by a two- or three-character sequence.
97 There are several rules guiding the design of the sequences, as
98 illustrated by the following examples.
99 The full list is too long to repeat here, but is contained in the file
100 .L /lib/keyboard
101 in a format suitable for
102 .IR grep (1)
103 or
104 .IR look (1).
105 .IP
106 A repeated symbol gives a variant of that symbol, e.g.,
107 .B ??
108 yields ¿\|.
109 .IP
110 .SM ASCII
111 digraphs for mathematical operators give the corresponding operator, e.g.,
112 .B <=
113 yields ≤.
114 .IP
115 Two letters give the corresponding ligature, e.g.,
116 .B AE
117 yields Æ.
118 .IP
119 Mathematical and other symbols are given by abbreviations for their names, e.g.,
120 .B pg
121 yields ¶.
122 .IP
123 Chess pieces are given by a
124 .B w
125 or
126 .B b
127 followed by a letter for the piece
128 .RB ( k
129 for king,
130 .B q
131 for queen,
132 .B r
133 for rook,
134 .B n
135 for knight,
136 .B b
137 for bishop, or
138 .B p
139 for pawn),
140 e.g.,
141 .B wk
142 for a white king.
143 .IP
144 Greek letters are given by an asterisk followed by a corresponding latin letter,
145 e.g.,
146 .B *d
147 yields δ.
148 .IP
149 Cyrillic letters are given by an at sign followed by a corresponding latin letter or letters,
150 e.g.,
151 .B @ya
152 yields я.
153 .IP
154 Script letters are given by a dollar sign followed by the corresponding regular letter,
155 e.g.,
156 .B $F
157 yields ℱ.
158 .IP
159 A digraph of a symbol followed by a letter gives the letter with an accent that looks like the symbol, e.g.,
160 .B ,c
161 yields ç.
162 .IP
163 Two digits give the fraction with that numerator and denominator, e.g.,
164 .B 12
165 yields ½.
166 .IP
167 The letter s followed by a character gives that character as a superscript, e.g.,
168 .B s1
169 yields ⁱ.
170 These characters are taken from the Unicode block 0x2070; the 1, 2, and 3
171 superscripts in the Latin-1 block are available by using a capital S instead of s.
172 .IP
173 Sometimes a pair of characters give a symbol related to the superimposition of the characters, e.g.,
174 .B cO
175 yields ©.
176 .IP
177 A mnemonic letter followed by $ gives a currency symbol, e.g.,
178 .B l$
179 yields £.
180 .PP
181 Note the difference between ß (ss) and µ (micron) and
182 the Greek β and μ.
183 .SH FILES
184 .TF "/lib/keyboard "
185 .TP
186 .B /lib/keyboard
187 sorted table of characters and keyboard sequences
188 .SH "SEE ALSO"
189 .IR intro (1),
190 .IR ascii (1),
191 .IR tcs (1),
192 .IR acme (1),
193 .IR rio (1),
194 .IR sam (1),
195 .IR cons (3),
196 .IR utf (6)