.TH KEYBOARD 6
.so /sys/lib/tmac/tmac.uni
.SH NAME
keyboard \- how to type characters
.SH DESCRIPTION
Keyboards are idiosyncratic.
It should be obvious how to type ordinary
.SM ASCII
characters,
backspace, tab, escape, and newline.
In Plan 9, the key labeled
.B Return
or
.B Enter
generates a newline
.RB ( 0x0A );
if there is a key labeled
.B Line
.BR Feed ,
it generates a carriage return
.RB ( 0x0D );
Plan 9 eschews CRLFs.
All control characters are typed in the usual way;
in particular, control-J is a line feed and control-M a carriage return.
On the Safari, the key labeled
.B Caps
.B Lock
acts as an additional control key.
.PP
The delete character
.RB ( 0x7F )
may be generated by a different key,
one near the extreme upper right of the keyboard.
On the Next it is the key labeled
.L *
(not the asterisk above the 8).
On the SLC, delete is labeled
.B Num
.B Lock
(the key above
.B Backspace
labeled
.B Delete
functions as an additional backspace key).
On the other keyboards, the key labeled
.B Del
generates the delete character.
.PP
The view character
.RB ( 0x80 ),
used by
.IR 8½ (1)
and
.IR sam (1),
causes windows to scroll forward.
It is generally somewhere near the lower right of the main key area.
The scroll character is generated by the
.B VIEW
key on the Gnot, the
.B Alt
.B Graph
key on the SLC, and any of the three arrow keys \(<-, \(da, and \(->
on the other terminals.
.PP
Characters in Plan 9 are runes (see
.IR utf (6)).
Any 16-bit rune can be typed using a compose key followed by several
other keys.
The compose key is also generally near the lower right of the main key area:
the
.B NUM PAD
key on the Gnot, the
.B Alternate
key on the Next, the
.B Compose
key on the Slc, the
.B Option
key on the Magnum, and either
.B Alt
key on the Safari.
After typing the compose key, type a capital
.L X
and exactly four hexadecimal characters (digits and
.L a
to
.LR f )
to type a single rune with the value represented by
the typed number.
There are shorthands for some characters.
Follow the compose key with appropriate two-character sequence to
generate the desired rune:
.IP
.EX
.ta 4n +8n +4n +8n +4n +8n +4n +8n +4n
¡	!!	¢	c$	£	l$	¤	g$
¥	y$	¦	||	§	SS	¨	""
©	cO	ª	sa	«	<<	¬	no
­	--	®	rO	¯	__	°	de
±	+-	²	s2	³	s3	´	''
µ	mi	¶	pg	·	..	¸	,,
¹	s1	º	s0	»	>>	¼	14
½	12	¾	34	¿	??	À	`A
Á	'A	Â	^A	Ã	~A	Ä	"A
Å	oA	Æ	AE	Ç	,C	È	`E
É	'E	Ê	^E	Ë	"E	Ì	`I
Í	'I	Î	^I	Ï	"I	Ð	D-
Ñ	~N	Ò	`O	Ó	'O	Ô	^O
Õ	~O	Ö	"O	×	mu	Ø	/O
Ù	`U	Ú	'U	Û	^U	Ü	"U
Ý	'Y	Þ	|P	ß	ss	à	`a
á	'a	â	^a	ã	~a	ä	"a
å	oa	æ	ae	ç	,c	è	`e
é	'e	ê	^e	ë	"e	ì	`i
í	'i	î	^i	ï	"i	ð	d-
ñ	~n	ò	`o	ó	'o	ô	^o
õ	~o	ö	"o	÷	-:	ø	/o
ù	`u	ú	'u	û	^u	ü	"u
ý	'y	þ	|p	ÿ	"y	α	*a
β	*b	γ	*g	δ	*d	ε	*e
ζ	*z	η	*y	θ	*h	ι	*i
κ	*k	λ	*l	μ	*m	ν	*n
ξ	*c	ο	*o	π	*p	ρ	*r
ς	ts	σ	*s	τ	*t	υ	*u
φ	*f	χ	*x	ψ	*q	ω	*w
Α	*A	Β	*B	Γ	*G	Δ	*D
Ε	*E	Ζ	*Z	Η	*Y	Θ	*H
Ι	*I	Κ	*K	Λ	*L	Μ	*M
Ν	*N	Ξ	*C	Ο	*O	Π	*P
Ρ	*R	Σ	*S	Τ	*T	Υ	*U
Φ	*F	Χ	*X	Ψ	*Q	Ω	*W
←	<-	↑	ua	→	->	↓	da
↔	ab	∀	fa	∃	te	∂	pd
∅	es	∆	De	∇	gr	∉	!m
∍	st	∗	**	∙	bu	√	sr
∝	pt	∞	if	∠	an	∧	l&
∨	l|	∩	ca	∪	cu	∫	is
∴	tf	≃	~=	≅	cg	≈	~~
≠	!=	≡	==	≦	<=	≧	>=
⊂	sb	⊃	sp	⊄	!b	⊆	ib
⊇	ip	⊕	O+	⊖	O-	⊗	Ox
⊢	tu	⊨	Tu	⋄	lz	⋯	el
.EE
.PP
Note the difference between ß (ss) and µ (micron) and
the Greek β and μ.
As well, white and black chess pieces may be escaped using the sequence
color
.RB ( w
or
.BR b )
followed by piece
.RB ( k
for king,
.B q
for queen,
.B r
for rook,
.B n
for knight,
.B b
for bishop, or
.B p
for pawn).
.SH "SEE ALSO"
.IR Intro (1),
.IR ascii (1),
.IR tcs (1),
.IR 8½ (1),
.IR sam (1),
.IR cons (3),
.IR utf (6)
