Did you do a man xmodmap?
keycode NUMBER = KEYSYMNAME ...
The list of keysyms is assigned to the indicated keycode (which
may be specified in decimal, hex or octal and can be determined
by running the xev program.
The problem is that xmodmap assigns pre-defined Key Symbol Names to keys specified by the keycode number.
The definitions for the keysyms are to be found in /usr/X11R6/include/X11/keysymdef.h
Now the question arises as to whether or not you actually need to have your F12 key defined to be FooBar for all X applications, or as I suspect just an X terminal emulator.
This can be done for Xterm by setting the appropriate application default resource.
From the xterm, manual page
ACTIONS
It is possible to rebind keys (or sequences of keys) to arbitrary
strings for input, by changing the translations for the vt100 or
tek4014 widgets.
Here is an example for the standard vt100 mode of xterm
XTerm.VT100.Translations: #override \n\
! <Key> Insert : string("\033[2~") \n\
! <Key> Home : string("\033[1~") \n\
! <Key> Prior : string("\033[5~") \n\
! <Key> Select : string("\033[3~") \n\
! <Key> End : string("\033[4~") \n\
! <Key> Next : string("\033[6~") \n\
! <Key> F1 : string("\033[11~") \n\
! <Key> F2 : string("\033[12~") \n\
! <Key> F3 : string("\033[13~") \n\
! <Key> F4 : string("\033[14~") \n\
! <Key> F5 : string("\033[15~") \n\
! <Key> F6 : string("\033[17~") \n\
! <Key> F7 : string("\033[18~") \n\
! <Key> F8 : string("\033[19~") \n\
! <Key> F9 : string("\033[20~") \n\
! <Key> F10 : string("\033[21~") \n\
! <Key> F11 : string("\033[23~") \n\
! <Key> F12 : string("\033[24~") \n
If you wish to do this for other X terminal emulators (aterm, eterm, rxvt) then please consult the corresponding man page for setting the appropriate resource.
Last edited by Corin; 07-28-2003 at 11:46 AM.
|