Pegasus InfoCorp: Web site design and web software development company

KBD_MODE (1)

report or set the keyboard mode

SYNOPSIS

    kbd_mode [ -auks ] "kbd_mode command" "" "\fLkbd_mode\fR command"

DESCRIPTION

    Without argument, kbd_mode prints the current keyboard mode. With argument, it sets the keyboard mode as indicated:

      -s : scancode mode (RAW),

      -k : keycode mode (MEDIUMRAW),

      -a : ASCII mode (XLATE),

      -u : UTF-8 mode (UNICODE).

    The XLATE mode is the traditional one, where the codes used can be any 8-bit character set. Is is usually expected that this character set matches the one used later to translate them internally into Unicode, after they are sent to the screen to be displayed, using the map selected by consolechars -m .

    In UNICODE mode, a 16-bit character set is expected, and these chars are transmitted to the kernel as 1, 2, or 3 bytes (following the UTF-8 coding). In these latter two modes the key mapping defined by loadkeys (1) is used.

    WARNING: changing the keyboard mode, other than between ASCII and Unicode, will probably make your keyboard unusable. This command can also be useful (say via remote login) when some program left your keyboard in the wrong state, to get the keyboard back into XLATE or UNICODE mode.

    Note that in some obsolete versions of this program the -u option was a synonym for -s .

SEE ALSO

    - loadkeys (1) - - consolechars (8) - '' }` ''' $RCSfile$$Revision$$Date$ ''' ''' $Log$ ''' Sh t Sp 5

    $1

    Sp t sp 5v n sp Ip n( $>=3 ne $3 3

      Vb CW
       $1  Ve R 

      ''' ''' ''' Set up *(-- to give an unbreakable dash; ''' string Tr holds user defined translation string ''' Bell System Logo is used as a dummy character ''' (*W-| (bv *(Tr n { -- (*W- PI pi ( n( H=4u)&(1m=24u) ds -- (*W h'-12u' (*W h'-12u'- " diablo 10 pitch ( n( H=4u)&(1m=20u) ds -- (*W h'-12u' (*W h'-8u'- " diablo 12 pitch L" "" R" "" ''' *(M" *(S" *(N" and *(T" are the equivalent of ''' *(L" and *(R" except that they are used on " xx" lines ''' such as IP and SH which do another additional levels of ''' double-quote interpretation M" """ S" """ N" """"" T" """"" L' ' R' ' M' ' S' ' N' ' T' ' 'br } { -- (em | *(Tr L" `` R" '' M" `` S" '' N" `` T" '' L' ` R' ' M' ` S' ' N' ` T' ' PI (*p 'br }