Charles.Forsyth20060303-partialeea662d19 years agoHistory
170 lines · 3.8 KB · Text
RawDownload
.TH KEYBOARD 6.SH NAMEkeyboard \- how to type characters.SH DESCRIPTIONKeyboards are idiosyncratic.The differing conventions of host operating systemsmake them more so for Inferno.In all implementations,it should be obvious how to type ordinary.SM ASCIIcharacters,backspace, tab, escape, and newline.When typing into the Inferno environment, the key labelled.B Returnor.B Entergenerates a newline.RB ( 0x0A );if there is a key labelled.B Line.BR Feed ,it generates a carriage return.RB ( 0x0D );Inferno 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..PPIn native mode,on the PC and some other machines, the followingextra conventions might also be used.The key labelled.B Caps.B Lockacts as an additional control key.The character erase key generates backspace.The key labelled.B Delor.B Deletegenerates the delete character.RB ( 0x7F ).The plethora of function keys generate values in the Unicodeuser-defined space, as defined by.B /include/keyboard.h and.BR /module/keyboard.m .They are fitfully supported by applications, but.B "Page\ Up"and.B "Page\ Down"are often understood by Tk applications..PPCharacters in Inferno are runes (see.IR utf (6)).Any 16-bit rune can be typed using a compose key followed by severalother keys.The compose key is implementation-dependent, andis also generally near the lower right of the main key area:either.B Altkey on the PC,and in X11 implementations, whatever X11 regardsas.B Altor.BR Meta .After typing the compose key, type a capital.L Xand exactly four hexadecimal characters (digits and.L ato.LR f )to type a single rune with the value represented bythe typed number.There are shorthands for many characters, comprisingthe compose key followed by a two- or three-character sequence.There are several rules guiding the design of the sequences, asillustrated by the following examples.The full list is too long to repeat here, but is contained in the file.L /lib/keyboardin a format suitable for.IR grep (1)..IPA repeated symbol gives a variant of that symbol, e.g.,.B ??yields ¿\|..IPASCII digraphs for mathematical operators give the corresponding operator, e.g.,.B <=yields ≤..IPTwo letters give the corresponding ligature, e.g.,.B AEyields Æ..IPMathematical and other symbols are given by abbreviations for their names, e.g.,.B pgyields ¶..IPChess pieces are given by a.B wor.B bfollowed by a letter for the piece.RB ( kfor king,.B qfor queen,.B rfor rook,.B nfor knight,.B bfor bishop, or.B pfor pawn),e.g.,.B wkfor a white king..IPGreek letters are given by an asterisk followed by a corresponding latin letter,e.g.,.B *dyields δ..IPCyrillic letters are given by an at sign followed by a corresponding latin letter or letters,e.g.,.B @yayields я..IPScript letters are given by a dollar sign followed by the corresponding regular letter,e.g.,.B $Fyields ℱ..IPA digraph of a symbol followed by a letter gives the letter with an accent that looks like the symbol, e.g.,.B ,cyields ç..IPTwo digits give the fraction with that numerator and denominator, e.g.,.B 12yields ½..IPThe letter s followed by a character gives that character as a superscript, e.g.,.B s1yields ¹..IPSometimes a pair of characters give a symbol related to the superimposition of the characters, e.g.,.B cOyields ©..IPA mnemonic letter followed by $ gives a currency symbol, e.g.,.B l$yields £..PPNote the difference between ß (ss) and µ (micron) andthe Greek β and μ..SH FILES.TF "/lib/keyboard ".TP.B /lib/keyboardsorted table of characters and keyboard sequences.SH "SEE ALSO".IR acme (1),.IR wm-brutus (1),.IR intro (1),.IR unicode (1),.IR cons (3),.IR utf (6),.IR kbdputc (10.2)