function key values in xterm

Matt Alexander plug-discuss@lists.plug.phoenix.az.us
Fri, 3 May 2002 09:08:37 -0700 (PDT)


For xterms, you can can add entries to your .Xdefaults, like this:

XTerm*Translations: #override \n\
~Shift  <Key>F1: string(0x1b) string("OP") \n \
~Shift  <Key>F2: string(0x1b) string("OQ") \n \
~Shift  <Key>F3: string(0x1b) string("OR") \n \
~Shift  <Key>F4: string(0x1b) string("OS") \n \
~Shift  <Key>F5: string(0x1b) string("[6~") \n \
~Shift  <Key>F6: string(0x1b) string("[17~") \n \
~Shift  <Key>F7: string(0x1b) string("[18~") \n \
~Shift  <Key>F8: string(0x1b) string("[19~") \n \
~Shift  <Key>F9: string(0x1b) string("[20~") \n \
~Shift  <Key>F10: string(0x1b) string("[21~") \n \
~Shift  <Key>F11: string(0x1b) string("[38~") \n \
~Shift  <Key>F12: string(0x1b) string("[35~") \n \
Shift   <Key>F1: string(0x1b) string("[23~") \n \
Shift   <Key>F2: string(0x1b) string("[24~") \n \
Shift   <Key>F3: string(0x1b) string("[25~") \n \
Shift   <Key>F4: string(0x1b) string("[26~") \n \
Shift   <Key>F5: string(0x1b) string("[28~") \n \
Shift   <Key>F6: string(0x1b) string("[29~") \n \
Shift   <Key>F7: string(0x1b) string("[31~") \n \
Shift   <Key>F8: string(0x1b) string("[32~") \n \
Shift   <Key>F9: string(0x1b) string("[33~") \n \
Shift   <Key>F10: string(0x1b) string("[34~") \n \
Shift   <Key>F11: string(0x1b) string("[39~") \n \
Shift   <Key>F12: string(0x1b) string("[36~") \n \
<Key>Home: string(0x1b) string("[1~") \n\
<Key>End: string(0x1b) string("[4~") \n\
<Key>Prior: string(0x1b) string("[5~") \n\
<Key>Next: string(0x1b) string("[H") \n\
<Key>Delete: string(0x1b) string("[3~") \n\


On Thu, 2 May 2002, Howard Shaw wrote:

> I was following a thread that delt with changing function keyvalues by using a
> keymap file and load keys.  This only works for the console.  Can I do the
> same thing for xterms?  What file do I edit and how do I load the new
> definitions?
>
> advTHANKSance
>
> -Howard
> ________________________________________________
> See http://PLUG.phoenix.az.us/navigator-mail.shtml if your mail doesn't post to the list quickly and you use Netscape to write mail.
>
> PLUG-discuss mailing list  -  PLUG-discuss@lists.plug.phoenix.az.us
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
>