KEYBOARD(7)
π NAME π
keyboard(7) from the Miscellaneous Information Manual β literally the page about how to type characters. The name section is just keyboard β how to type characters. Short, sweet, already slaying. π
β¨ DESCRIPTION β¨
Keyboards are idiosyncratic. It should be obvious how to type ordinary ASCII characters, backspace, tab, escape, and newline. In Plan 9, the key labeled Return or Enter generates a newline (0x0A); if there is a key labeled Line Feed, it generates a carriage return (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.
The down arrow, used by 9term(1), acme(1), and sam(1), causes windows to scroll forward. The up arrow scrolls backward.
Characters in Plan 9 are runes (see utf(7)). Any 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 Option key on the Mac and the Alt key on Unix systems. To type a single rune with the value specified by a given four-digit hexadecimal number, type the compose key, then a capital and then the four hexadecimal digits. And then the page hits us with this exact parenthetical, which I am preserving character-for-character because I refuse to invent details:
(decimal digits and to For a longer rune, type twice followed by five digits, or type three times followed by six digits)
There are shorthands for many characters, comprising the compose key followed by a two- or three-character sequence. The full list is too long to repeat here, but is contained in the file in a format suitable for grep(1) or look(1). To add a sequence, edit that file and then rebuild devdraw(1).
There are several rules guiding the design of the sequences, as illustrated by the following examples.
- A repeated symbol gives a variant of that symbol, e.g.,
??yieldsΒΏ. - ASCII digraphs for mathematical operators give the corresponding operator, e.g.,
<=yieldsβ€. - Two letters give the corresponding ligature, e.g.,
AEyieldsΓ. - Mathematical and other symbols are given by abbreviations for their names, e.g.,
pgyieldsΒΆ. - Chess pieces are given by a
worbfollowed by a letter for the piece (kfor king,qfor queen,rfor rook,nfor knight,bfor bishop, orpfor pawn), e.g.,wkfor a white king. - Greek letters are given by an asterisk followed by a corresponding latin letter, e.g.,
*dyieldsΞ΄. - Cyrillic letters are given by an at sign followed by a corresponding latin letter or letters, e.g.,
@yayieldsΡ. - Script letters are given by a dollar sign followed by the corresponding regular letter, e.g.,
$Fyieldsβ±. - A digraph of a symbol followed by a letter gives the letter with an accent that looks like the symbol, e.g.,
,cyieldsΓ§. - Two digits give the fraction with that numerator and denominator, e.g.,
12yieldsΒ½. - The letter
sfollowed by a character gives that character as a superscript, e.g.,s1yieldsβ±. These characters are taken from the Unicode block0x2070; the1,2, and3superscripts in the Latin-1 block are available by using a capitalSinstead ofs. - Sometimes a pair of characters give a symbol related to the superimposition of the characters, e.g.,
cOyieldsΒ©. - A mnemonic letter followed by
$gives a currency symbol, e.g.,l$yieldsΒ£.
Note the difference between Γ (ss) and Β΅ (micron) and the Greek Ξ² and ΞΌ.
πͺ X WINDOWS πͺ
Under X Windows, both the Alt key and the βMulti keyβ can begin a compose sequence in a Plan 9 program.
It is also possible to configure X Windows to use the same keystroke mappings as the Plan 9 programs. First, generate an XCompose sequence list by using mklatinkbd:
mklatinkbd -x $PLAN9/lib/keyboard >$HOME/.XCompose
Second, configure a βMulti keyβ by running
xmodmap -e 'keysym Super_L = Multi_key'
(The name typically denotes the Windows key on recent keyboards.)
Third, set these environment variables so that GTK- and QT-based programs will use the compose sequences:
export GTK_IM_MODULE=xim
export QT_IM_MODULE=xim
Finally, start a new GTK- or QT-based program:
gnome-terminal &
In that terminal, typing the key sequence Windows * a' should be interpreted as the Greek letter β and yeah, the page literally cuts off right there; no letter is specified in this copy, so I'm not gonna make one up π.
If using the GNOME Window Manager, put the xmodmap and export commands into the file $HOME/.gnomerc to run them automatically at startup.
ποΈ FILES ποΈ
/lib/keyboardβ sorted table of characters and keyboard sequences.
π SEE ALSO π
intro(1), ascii(1), tcs(1), 9term(1), acme(1), sam(1), utf(7)
That's the whole keyboard(7) page, bestie β source/manual: Miscellaneous Information Manual; footer in this copy is literally just KEYBOARD(7); version/date: not printed here. Byeee π«Άπ
β¨
π¦ where this page comes from
- alpine 3.24: plan9port-doc 0_git20260208-r0 Β· LPL-1.02
- arch rolling: plan9port 20261021-2 Β· custom
- nixos 26.05: plan9port 0-unstable-2025-11-10
- nixos 26.05: plan9port-wayland 0-unstable-2025-11-26
- nixpkgs unstable: plan9port 0-unstable-2025-11-10
- nixpkgs unstable: plan9port-wayland 0-unstable-2025-11-26
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms