keyboard 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195
  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 16-bit 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 capital
  87. .L X
  88. and exactly four hexadecimal characters (digits and
  89. .L a
  90. to
  91. .LR f )
  92. to type a single rune with the value represented by
  93. the typed number.
  94. There are shorthands for many characters, comprising
  95. the compose key followed by a two- or three-character sequence.
  96. There are several rules guiding the design of the sequences, as
  97. illustrated by the following examples.
  98. The full list is too long to repeat here, but is contained in the file
  99. .L /lib/keyboard
  100. in a format suitable for
  101. .IR grep (1)
  102. or
  103. .IR look (1).
  104. .IP
  105. A repeated symbol gives a variant of that symbol, e.g.,
  106. .B ??
  107. yields ¿\|.
  108. .IP
  109. .SM ASCII
  110. digraphs for mathematical operators give the corresponding operator, e.g.,
  111. .B <=
  112. yields ≤.
  113. .IP
  114. Two letters give the corresponding ligature, e.g.,
  115. .B AE
  116. yields Æ.
  117. .IP
  118. Mathematical and other symbols are given by abbreviations for their names, e.g.,
  119. .B pg
  120. yields ¶.
  121. .IP
  122. Chess pieces are given by a
  123. .B w
  124. or
  125. .B b
  126. followed by a letter for the piece
  127. .RB ( k
  128. for king,
  129. .B q
  130. for queen,
  131. .B r
  132. for rook,
  133. .B n
  134. for knight,
  135. .B b
  136. for bishop, or
  137. .B p
  138. for pawn),
  139. e.g.,
  140. .B wk
  141. for a white king.
  142. .IP
  143. Greek letters are given by an asterisk followed by a corresponding latin letter,
  144. e.g.,
  145. .B *d
  146. yields δ.
  147. .IP
  148. Cyrillic letters are given by an at sign followed by a corresponding latin letter or letters,
  149. e.g.,
  150. .B @ya
  151. yields я.
  152. .IP
  153. Script letters are given by a dollar sign followed by the corresponding regular letter,
  154. e.g.,
  155. .B $F
  156. yields ℱ.
  157. .IP
  158. A digraph of a symbol followed by a letter gives the letter with an accent that looks like the symbol, e.g.,
  159. .B ,c
  160. yields ç.
  161. .IP
  162. Two digits give the fraction with that numerator and denominator, e.g.,
  163. .B 12
  164. yields ½.
  165. .IP
  166. The letter s followed by a character gives that character as a superscript, e.g.,
  167. .B s1
  168. yields ⁱ.
  169. These characters are taken from the Unicode block 0x2070; the 1, 2, and 3
  170. superscripts in the Latin-1 block are available by using a capital S instead of s.
  171. .IP
  172. Sometimes a pair of characters give a symbol related to the superimposition of the characters, e.g.,
  173. .B cO
  174. yields ©.
  175. .IP
  176. A mnemonic letter followed by $ gives a currency symbol, e.g.,
  177. .B l$
  178. yields £.
  179. .PP
  180. Note the difference between ß (ss) and µ (micron) and
  181. the Greek β and μ.
  182. .SH FILES
  183. .TF "/lib/keyboard "
  184. .TP
  185. .B /lib/keyboard
  186. sorted table of characters and keyboard sequences
  187. .SH "SEE ALSO"
  188. .IR intro (1),
  189. .IR ascii (1),
  190. .IR tcs (1),
  191. .IR acme (1),
  192. .IR rio (1),
  193. .IR sam (1),
  194. .IR cons (3),
  195. .IR utf (6)