Provided by: manpages-zh_1.5.2-1_all bug

NAME

       xmodmap -  X

 (SYNOPSIS)
       xmodmap [-options ...] [filename]

 (DESCRIPTION)
       xmodmap   (modifier   map)   (keymap  table),      (keycode)    keysym.
       xmodmap,      .

 (OPTIONS)
       xmodmap    :

       -display display
                   .

       -help         .  , xmodmap    .

       -grammar
                     .  -e expression .

       -verbose
                xmodmap       .

       -quiet     verbose .  .

       -n       xmodmap  (,) ,     , make(1)    .

       -e expression
                   .       .

       -pm           (modifier).

       -pk           (keymap).

       -pke          (keymap).    xmodmap  .

       -pp           (pointer).

       -        (-)      .

       filename  ,   xmodmap   .     .xmodmaprc,   .

 (EXPRESSION GRAMMAR)
       xmodmap   ,    ,     .       keysym  .

       keycode NUMBER = KEYSYMNAME ...
                 keysym   .  (  , , , xev  .)

       keycode any = KEYSYMNAME ...
                   keysym   , xmodmap ,   keysym   . keysym  , .

       keysym KEYSYMNAME = KEYSYMNAME ...
                KEYSYMNAME   , .       <X11/keysymdef.h>    keysym  (  XK_  ),
               keysym  <XRoot>/lib/X11/XKeysymDB,  <XRoot>  X11  . ,    (bind)
               keysym,        .

       clear MODIFIERNAME
                       ,    : Shift, Lock, Control, Mod1,  Mod2,  Mod3,  Mod4,
               Mod5 (  ,      ).  , ``clear Lock''     shift lock  .

       add MODIFIERNAME = KEYSYMNAME ...
                    keysym      .     , xmodmap   keysym,      . ( EXAMPLES )

       remove MODIFIERNAME = KEYSYMNAME ...
                        keysym  .  add , xmodmap      .    .

       pointer = default
                    (1  1, 2  2, ).

       pointer = NUMBER ...
                    .   .

         (!) .

              ,    .

 (EXAMPLE)
             ,  ,       .    :
       %  xmodmap -e "pointer = 3 2 1"

           Meta  ,  ,        Meta keysym, .    Meta  Multi-language  ( Compose
       Character).    ,  Meta ,  keysym    .     Multi_key       .
       %  xmodmap -e "keysym Multi_key = Multi_key Meta_L"

       ,    Alt ,  Meta .   :
       %  xmodmap -e "keysym Alt_L = Meta_L Alt_L"

       xmodmap ,        "rubout" ,   keysym.      Backspace  Delete .    xterm
       ttyModes     ,       .
       %  xmodmap -e "keysym BackSpace = Delete"
       %  echo "XTerm*ttyModes:  erase ^?" | xrdb -merge

         shift   ,  ,     .         :
       !
       ! make shift-, be < and shift-. be >
       !
       keysym comma = comma less
       keysym period = period greater

             Control  Shift Lock   .  xmodmap       , :
       !
       ! Swap Caps_Lock and Control_L
       !
       remove Lock = Caps_Lock
       remove Control = Control_L
       keysym Control_L = Caps_Lock
       keysym Caps_Lock = Control_L
       add Lock = Caps_Lock
       add Control = Control_L

              keysym,   keycode .     ,     , .     backspace  Delete (),  cap
       lock  ,  CapsLock  Control , F5  Escape, Break/Reset  shift lock.
       !
       ! On the HP, the following keycodes have key caps as listed:
       !
       !     101  Backspace
       !      55  Caps
       !      14  Ctrl
       !      15  Break/Reset
       !      86  Stop
       !      89  F5
       !
       keycode 101 = Delete
       keycode 55 = Control_R
       clear Lock
       add Control = Control_R
       keycode 89 = Escape
       keycode 15 = Caps_Lock
       add Lock = Caps_Lock

 (ENVIRONMENT)
       DISPLAY     .

 (SEE ALSO)
       X(1), xev(1), Xlib       .

BUGS

          keycode , MappingNotify .    .   ,   .   , MappingNotify           .

              , Xmodmap    "add"  "remove" .

         ,      , remove     keysym.

 (AUTHOR)
       Jim Fulton, MIT X ,  David Rosenthal  Sun Microsystems  .

[]

        <xuming@users.sourceforge.net>

[]

       2003/05/13

Linuxman

       http://cmpp.linuxforum.net