man keyboard () - how to type characters


keyboard - how to type characters


Keyboards are idiosyncratic. It should be obvious how to type ordinary ASCII characters, backspace, tab, escape, and newline. In general, the key labeled Return or Enter generates a newline (0x0A); if there is a key labeled Line Feed, it generates a carriage return (0x0D); CRLFs are not used. All control characters are typed in the usual way; in particular, control-J is a line feed and control-M a carriage return.

The delete character (0x7F) is usually generated by a key labeled Del, Delete, or Int.

The view character (0x80), sam(1), and 9term(1), causes windows to scroll forward; the back-view character (0x81), causes windows to scroll backward. The view character is generated by the and keys; the back-view character is generated by the and keys.

Internally, characters are represented as runes (see utf(5g)). Any 16-bit rune can be typed as a multi-character sequence. The compose key must be pressed while the first character of the sequence is typed; on most terminals, the compose key is labeled Alt. While pressing the compose key, type a capital and exactly four hexadecimal characters (digits and to to enter the rune with the value represented by the typed number. There are two-character shorthands for some characters. The compose key must be pressed while typing the first character of the pair. The following sequences generate the desired rune:

!! c$ l$ g$ y$ || SS "" © cO sa << no [0xad] -- rO __ de +- s2 s3 '' [0xb5] 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 [0x2206] De gr !m [0x220d] st ** • bu sr pt if an l& l| ca cu is tf [0x2243] ~= cg [0x2248] ~~ != == <= >= sb sp !b ib ip O+ [0x2296] O- Ox [0x22a2] tu [0x22a8] Tu [0x22c4] lz el

Note the difference between (ss) and [0xb5] (micron) and the Greek and . As well, white and black chess pieces may be escaped using the sequence color (w or b) followed by piece (k for king, q for queen, r for rook, n for knight, b for bishop, or p for pawn).