home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / windows / x / i386unix / 266 < prev    next >
Encoding:
Text File  |  1993-01-12  |  5.4 KB  |  96 lines

  1. Newsgroups: comp.windows.x.i386unix
  2. Path: sparky!uunet!europa.asd.contel.com!howland.reston.ans.net!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!cbnewsk!cbnewsj!dwex
  3. From: dwex@cbnewsj.cb.att.com (david.e.wexelblat)
  4. Subject: Re: Cursor keys?
  5. Organization: AT&T
  6. Date: Tue, 12 Jan 1993 19:27:37 GMT
  7. Message-ID: <1993Jan12.192737.4693@cbnewsj.cb.att.com>
  8. References: <53.1192.uupcb@satalink.com>
  9. Lines: 85
  10.  
  11. In article <53.1192.uupcb@satalink.com> john.will@satalink.com (John Will)  writes:
  12. > I'm running Linux and Xfree86, I'd like to get the xterm to respond to the
  13. > cursor keys the same way as with the basic console, currently, only the
  14. > main keyboard keys are usable while running X.  I know there must be some
  15. > sort of keyboard mapping going on, but I just can't find where. :-)  My
  16. > specific problem is with emacs, runs fine under plain Linux, but all of
  17. > the cursor keys are non-functional with X.
  18. > Internet: john.will@satalink.com
  19. > ---
  20. >  . KingQWK 1.05 # 97 . If we don't succeed, we run the risk of failure
  21. >                                                                                                                            
  22.  
  23. Well, there's a couple of possibilities:
  24.  
  25.     1) The termcap/terminfo for xterm is not installed correctly
  26.        (I'm not sure which one Linux uses).
  27.     2) The xterm entry for termcap/terminfo assumes standard
  28.        Unix console escape sequences, instead of xterm escape
  29.        sequences (such is the case on SVR4).
  30.  
  31. If it's the former problem, find and install the correct entry.  If it's
  32. the latter, the following set of translations works for me:
  33.  
  34. XTerm*VT100.Translations: #override \
  35.         ~Shift ~Ctrl ~Alt <Key>F1:      string(0x1b) string(OP) \n\
  36.         ~Shift ~Ctrl ~Alt <Key>F2:      string(0x1b) string(OQ) \n\
  37.         ~Shift ~Ctrl ~Alt <Key>F3:      string(0x1b) string(OR) \n\
  38.         ~Shift ~Ctrl ~Alt <Key>F4:      string(0x1b) string(OS) \n\
  39.         ~Shift ~Ctrl ~Alt <Key>F5:      string(0x1b) string(OT) \n\
  40.         ~Shift ~Ctrl ~Alt <Key>F6:      string(0x1b) string(OU) \n\
  41.         ~Shift ~Ctrl ~Alt <Key>F7:      string(0x1b) string(OV) \n\
  42.         ~Shift ~Ctrl ~Alt <Key>F8:      string(0x1b) string(OW) \n\
  43.         ~Shift ~Ctrl ~Alt <Key>F9:      string(0x1b) string(OX) \n\
  44.         ~Shift ~Ctrl ~Alt <Key>F10:     string(0x1b) string(OY) \n\
  45.         ~Shift ~Ctrl ~Alt <Key>F11:     string(0x1b) string(OZ) \n\
  46.         ~Shift ~Ctrl ~Alt <Key>F12:     string(0x1b) string(OA) \n\
  47.         Shift ~Ctrl ~Alt <Key>F1:       string(0x1b) string(Op) \n\
  48.         Shift ~Ctrl ~Alt <Key>F2:       string(0x1b) string(Oq) \n\
  49.         Shift ~Ctrl ~Alt <Key>F3:       string(0x1b) string(Or) \n\
  50.         Shift ~Ctrl ~Alt <Key>F4:       string(0x1b) string(Os) \n\
  51.         Shift ~Ctrl ~Alt <Key>F5:       string(0x1b) string(Ot) \n\
  52.         Shift ~Ctrl ~Alt <Key>F6:       string(0x1b) string(Ou) \n\
  53.         Shift ~Ctrl ~Alt <Key>F7:       string(0x1b) string(Ov) \n\
  54.         Shift ~Ctrl ~Alt <Key>F8:       string(0x1b) string(Ow) \n\
  55.         Shift ~Ctrl ~Alt <Key>F9:       string(0x1b) string(Ox) \n\
  56.         Shift ~Ctrl ~Alt <Key>F10:      string(0x1b) string(Oy) \n\
  57.         Shift ~Ctrl ~Alt <Key>F11:      string(0x1b) string(Oz) \n\
  58.         Shift ~Ctrl ~Alt <Key>F12:      string(0x1b) string(Oa) \n\
  59.         ~Shift Ctrl ~Alt <Key>F1:       string(0x1b) string(]P) \n\
  60.         ~Shift Ctrl ~Alt <Key>F2:       string(0x1b) string(]Q) \n\
  61.         ~Shift Ctrl ~Alt <Key>F3:       string(0x1b) string(]R) \n\
  62.         ~Shift Ctrl ~Alt <Key>F4:       string(0x1b) string(]S) \n\
  63.         ~Shift Ctrl ~Alt <Key>F5:       string(0x1b) string(]T) \n\
  64.         ~Shift Ctrl ~Alt <Key>F6:       string(0x1b) string(]U) \n\
  65.         ~Shift Ctrl ~Alt <Key>F7:       string(0x1b) string(]V) \n\
  66.         ~Shift Ctrl ~Alt <Key>F8:       string(0x1b) string(]W) \n\
  67.         ~Shift Ctrl ~Alt <Key>F9:       string(0x1b) string(]X) \n\
  68.         ~Shift Ctrl ~Alt <Key>F10:      string(0x1b) string(]Y) \n\
  69.         ~Shift Ctrl ~Alt <Key>F11:      string(0x1b) string(]Z) \n\
  70.         ~Shift Ctrl ~Alt <Key>F12:      string(0x1b) string(]A) \n\
  71.         ~Shift ~Ctrl Alt <Key>F1:       string(0x1b) string(]p) \n\
  72.         ~Shift ~Ctrl Alt <Key>F2:       string(0x1b) string(]q) \n\
  73.         ~Shift ~Ctrl Alt <Key>F3:       string(0x1b) string(]r) \n\
  74.         ~Shift ~Ctrl Alt <Key>F4:       string(0x1b) string(]s) \n\
  75.         ~Shift ~Ctrl Alt <Key>F5:       string(0x1b) string(]t) \n\
  76.         ~Shift ~Ctrl Alt <Key>F6:       string(0x1b) string(]u) \n\
  77.         ~Shift ~Ctrl Alt <Key>F7:       string(0x1b) string(]v) \n\
  78.         ~Shift ~Ctrl Alt <Key>F8:       string(0x1b) string(]w) \n\
  79.         ~Shift ~Ctrl Alt <Key>F9:       string(0x1b) string(]x) \n\
  80.         ~Shift ~Ctrl Alt <Key>F10:      string(0x1b) string(]y) \n\
  81.         ~Shift ~Ctrl Alt <Key>F11:      string(0x1b) string(]z) \n\
  82.         ~Shift ~Ctrl Alt <Key>F12:      string(0x1b) string(]a) \n\
  83.         ~Shift <Key>End:                string(0x1b) string([Y) \n\
  84.         ~Shift <Key>KP_Enter:           string(0x1b) string(OM) \n\
  85.         ~Shift <Key>Home:               string(0x1b) string([H) \n\
  86.         ~Shift <Key>Next:               string(0x1b) string([U) \n\
  87.         ~Shift <Key>Prior:              string(0x1b) string([V)
  88.  
  89. --
  90. David Wexelblat <dwex@mtgzfs3.att.com>  (908) 957-5871
  91. AT&T Bell Laboratories, 200 Laurel Ave - 3F-428, Middletown, NJ  07748
  92.  
  93. "The meaning of life?  That's simple.  Try to be happy, try not to hurt
  94.  other people, and hope to fall in love."  -- Mallory Keaton
  95.