Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages


home | help
KEYBOARD(7)	       Miscellaneous Information Manual		   KEYBOARD(7)

       keyboard	- how to type characters

       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 and causes windows to scroll forward.   The  up
       arrow scrolls backward.

       Characters  in Plan 9 are runes (see Any	rune can be typed using	a com-
       pose key	followed by several other keys.	 The compose key is also  gen-
       erally  near  the  lower	right of the main key area: the	NUM PAD	key on
       the Gnot, the Alternate key on the Next,	the Compose key	 on  the  SLC,
       the  Option key on the Magnum, and either Alt key on the	PC.  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 hexadec-
       imal digits (decimal digits and to For a	longer rune, type  twice  fol-
       lowed  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 or To add a sequence, edit that file	and then rebuild

       There  are several rules	guiding	the design of the sequences, as	illus-
       trated by the following examples.

	      A	repeated symbol	gives a	 variant  of  that  symbol,  e.g.,  ??
	      yields A?.

	      ASCII digraphs for mathematical operators	give the corresponding
	      operator,	e.g., <= yields	ax.

	      Two letters give the corresponding ligature, e.g., AE yields A.

	      Mathematical and other symbols are given	by  abbreviations  for
	      their names, e.g., pg yields A<paragraph>.

	      Chess  pieces are	given by a w or	b followed by a	letter for the
	      piece (k for king, q for queen, r	for rook, n for	knight,	b  for
	      bishop, or p for pawn), e.g., wk for a white king.

	      Greek letters are	given by an asterisk followed by a correspond-
	      ing latin	letter,	e.g., *d yields	I'.

	      Cyrillic letters are given by an at sign followed	 by  a	corre-
	      sponding latin letter or letters,	e.g., @ya yields N.

	      Script letters are given by a dollar sign	followed by the	corre-
	      sponding regular letter, e.g., $F	yields a+-.

	      A	digraph	of a symbol followed by	a letter gives the letter with
	      an   accent   that  looks	 like  the  symbol,  e.g.,  ,c	yields

	      Two digits give the fraction with	that numerator	and  denomina-
	      tor, e.g., 12 yields A1/2.

	      The  letter  s followed by a character gives that	character as a
	      superscript, e.g., s1 yields a+-.	 These	characters  are	 taken
	      from  the	 Unicode block 0x2070; the 1, 2, and 3 superscripts in
	      the Latin-1 block	are available by using a capital S instead  of

	      Sometimes	 a pair	of characters give a symbol related to the su-
	      perimposition of the characters, e.g., cO	yields A(C).

	      A	mnemonic letter	followed by $ gives a currency	symbol,	 e.g.,
	      l$ yields	AL.

       Note  the difference between A (ss) and A<micro>	(micron) and the Greek
       I^2 and I1/4.

       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 pro-
       grams 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  in-
       terpreted as the	Greek letter

       If  using the GNOME Window Manager, put the xmodmap and export commands
       into the	file $HOME/.gnomerc to run them	automatically at startup.

	      sorted table of characters and keyboard sequences



Want to link to this manual page? Use this URL:

home | help