home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / windows / x / 19406 < prev    next >
Encoding:
Text File  |  1992-11-20  |  5.2 KB  |  112 lines

  1. Newsgroups: comp.windows.x
  2. Path: sparky!uunet!usc!zaphod.mps.ohio-state.edu!moe.ksu.ksu.edu!hobbes.physics.uiowa.edu!ljg
  3. From: ljg@space.physics.uiowa.edu (Larry Granroth)
  4. Subject: [XFree86] xterm keysym mapping
  5. Message-ID: <By1AvE.H8B@space.physics.uiowa.edu>
  6. Organization: The University of Iowa, Department of Physics and Astronomy
  7. X-Newsreader: TIN [version 1.1 PL6]
  8. Date: Fri, 20 Nov 1992 21:40:24 GMT
  9. Lines: 101
  10.  
  11.  
  12. I'm running XFree86 on 386BSD and was trying to create an .Xdefaults
  13. file that would provide VT200 application keypad emulation under xterm.
  14. The file I created (attached below) almost works except that the Num_Lock
  15. key on my 101-key keyboard toggles the behavior of the keypad such that
  16. in one state, for example, KP_8 behaves as expected, but after using
  17. Num_Lock (as a VT200 PF1) the KP_8 behaves like Up (until Num_Lock is
  18. hit again).  Also, I've discovered through trial-and-error that this
  19. Num_Lock/KP_8/Up is recognized separately from the Up arrow in the
  20. 4-key arrow group (i.e., remapping <Key>Up doesn't affect Num_Lock/KP_8/Up).
  21.  
  22. If I knew how to specify the keysym for Num_Lock/KP_8/Up, I could remap
  23. it just like ~Num_Lock/KP_8 and my problem would be solved.
  24.  
  25. Below, I've added the modifier "Num_Lock" in front of the problem keypad
  26. keys, but this doesn't work.  Does anyone know the right way to do this?
  27.  
  28. Thanks in advance for any help.  I'll summarize if appropriate.
  29.  
  30. larry-granroth@uiowa.edu
  31.  
  32. -------------------------.Xdefaults---------------------------------------
  33. *font: fixed
  34. *borderWidth: 2
  35. *borderColor: maroon
  36.  
  37. XTerm*VT100*geometry:    80x24
  38. XTerm*VT100*scrollBar:   on
  39. XTerm*VT100*boldFont:     vtbold
  40. XTerm*VT100*font:     vtsingle
  41. XTerm*VT100*c132:     on
  42. XTerm*VT100*alwaysHighlight:    off
  43. XTerm*VT100*curses:     on
  44. XTerm*VT100*saveLines:     480
  45. XTerm*VT100*jumpScroll:     on
  46. XTerm*VT100*multiScroll:    on
  47. XTerm*VT100*scrollInput:    off
  48. XTerm*VT100*scrollKey:     on
  49. XTerm*VT100*reverseWrap: on
  50. XTerm*Tek4014*width:    800
  51. XTerm*Tek4014*height:    600
  52. XTerm*WaitForMap*waitForMap:    on
  53.  
  54. XTerm*VT100.Translations: \
  55. #override \
  56.  Shift<Key>F1:           string("0x1b") string("[23~") \n\
  57.  Shift<Key>F2:           string("0x1b") string("[24~") \n\
  58.  Shift<Key>F3:           string("0x1b") string("[25~") \n\
  59.  Shift<Key>F4:           string("0x1b") string("[26~") \n\
  60.  Shift<Key>F5:           string("0x1b") string("[28~") \n\
  61. ~Shift<Key>F6:           string("0x1b") string("[17~") \n\
  62.  Shift<Key>F6:           string("0x1b") string("[29~") \n\
  63. ~Shift<Key>F7:           string("0x1b") string("[18~") \n\
  64.  Shift<Key>F7:           string("0x1b") string("[31~") \n\
  65. ~Shift<Key>F8:           string("0x1b") string("[19~") \n\
  66.  Shift<Key>F8:           string("0x1b") string("[32~") \n\
  67. ~Shift<Key>F9:           string("0x1b") string("[20~") \n\
  68.  Shift<Key>F9:           string("0x1b") string("[33~") \n\
  69. ~Shift<Key>F10:          string("0x1b") string("[21~") \n\
  70.  Shift<Key>F10:          string("0x1b") string("[34~") \n\
  71.  <Key>Num_Lock:          string("0x1b") string("OP")   \n\
  72.  <Key>KP_Divide:         string("0x1b") string("OQ")   \n\
  73.  <Key>KP_Multiply:       string("0x1b") string("OR")   \n\
  74.  <Key>KP_Subtract:       string("0x1b") string("OS")   \n\
  75.  Shift<Key>KP_Add:       string("0x1b") string("Ol")   \n\
  76. ~Shift<Key>KP_Add:       string("0x1b") string("Om")   \n\
  77.  <Key>KP_Decimal:        string("0x1b") string("On")   \n\
  78.  <Key>KP_0:              string("0x1b") string("Op")   \n\
  79.  <Key>KP_1:              string("0x1b") string("Oq")   \n\
  80.  <Key>KP_2:              string("0x1b") string("Or")   \n\
  81.  <Key>KP_3:              string("0x1b") string("Os")   \n\
  82.  <Key>KP_4:              string("0x1b") string("Ot")   \n\
  83.  <Key>KP_5:              string("0x1b") string("Ou")   \n\
  84.  <Key>KP_6:              string("0x1b") string("Ov")   \n\
  85.  <Key>KP_7:              string("0x1b") string("Ow")   \n\
  86.  <Key>KP_8:              string("0x1b") string("Ox")   \n\
  87.  <Key>KP_9:              string("0x1b") string("Oy")   \n\
  88.  Num_Lock<Key>KP_Decimal:        string("0x1b") string("On")   \n\
  89.  Num_Lock<Key>KP_0:              string("0x1b") string("Op")   \n\
  90.  Num_Lock<Key>KP_1:              string("0x1b") string("Oq")   \n\
  91.  Num_Lock<Key>KP_2:              string("0x1b") string("Or")   \n\
  92.  Num_Lock<Key>KP_3:              string("0x1b") string("Os")   \n\
  93.  Num_Lock<Key>KP_4:              string("0x1b") string("Ot")   \n\
  94.  Num_Lock<Key>KP_5:              string("0x1b") string("Ou")   \n\
  95.  Num_Lock<Key>KP_6:              string("0x1b") string("Ov")   \n\
  96.  Num_Lock<Key>KP_7:              string("0x1b") string("Ow")   \n\
  97.  Num_Lock<Key>KP_8:              string("0x1b") string("Ox")   \n\
  98.  Num_Lock<Key>KP_9:              string("0x1b") string("Oy")   \n\
  99.  <Key>KP_Enter:          string("0x1b") string("OM")   \n\
  100.  <Key>Insert:            string("0x1b") string("[1~")  \n\
  101.  <Key>Home:              string("0x1b") string("[2~")  \n\
  102.  <Key>Prior:             string("0x1b") string("[3~")  \n\
  103.  <Key>Delete:            string("0x1b") string("[4~")  \n\
  104.  <Key>End:               string("0x1b") string("[5~")  \n\
  105.  <Key>Next:              string("0x1b") string("[6~")  \n\
  106.  <Key>Up:                string("0x1b") string("[A")   \n\
  107.  <Key>Down:              string("0x1b") string("[B")   \n\
  108.  <Key>Right:             string("0x1b") string("[C")   \n\
  109.  <Key>Left:              string("0x1b") string("[D")   \n\
  110.  <Key>BackSpace:         string("0x7f")
  111.  
  112.