home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / unix / aix / 11850 < prev    next >
Encoding:
Text File  |  1992-11-23  |  2.1 KB  |  60 lines

  1. Newsgroups: comp.unix.aix
  2. Path: sparky!uunet!munnari.oz.au!yoyo.aarnet.edu.au!frodo.cc.flinders.edu.au!hobson.cc.flinders.edu.au!mmrw
  3. From: mmrw@hobson.cc.flinders.edu.au (Rick Williams)
  4. Subject: Re: *xterm function key translations
  5. Message-ID: <1992Nov17.055208.40597@frodo.cc.flinders.edu.au>
  6. Sender: mmrw 
  7. Date: Tue, 17 Nov 1992 05:52:08 GMT
  8. References: <1992Nov9.202847.10351@newstand.syr.edu>
  9. Organization: Flinders University
  10. Lines: 48
  11.  
  12. In article <1992Nov9.202847.10351@newstand.syr.edu> kcameron@erc.cat.syr.edu (Ken Cameron) writes:
  13. >I am trying to create a *xterm (real xterm or aixterm) that will use
  14. >my own set of escape codes for the function keys. This needs to work
  15. >only in the one window I configured as the other windows will be doing
  16. >normal AIX stuff. I've tries the use of xrm and translations but
  17. >haven't figured it out yet. If someone has a solution please email/post
  18. >so I can get this working. Basicly I am trying to have a VT100 window
  19. >with vt100 keys (but its on a remote system) so I can't alter the
  20. >remote termcap (since it's not Unix).
  21. >Thanx,
  22. >
  23. >-- 
  24. >-ken cameron. SkyDiver: Zoo-602, A-8596, D-11839. Skier.
  25. >Employer: Computer Task Group.  /cny UNIX Users Group Director.
  26. >Disclamer: "I said it, when I said it, so what! Now is different!"
  27. >Internet: kcameron@erc.cat.syr.edu
  28.  
  29.  
  30. Use the -name option of aixterm to give the application a new name:-
  31.         aixterm -name ESQR .... &
  32.  
  33. Then set up bindings in the .Xdefaults file as per this example
  34.  (Case and punctuation are VERY important):-
  35.  
  36. ESQR*Translations:    #override \
  37. <Key>Num_Lock:        string("OP") \n\
  38. <Key>KP_Divide:        string("OQ") \n\
  39. <Key>KP_Multiply:    string("OR") \n\
  40. <Key>KP_Subtract:    string("OS") \n\
  41. <Key>Home:        string("h") \n\
  42. <Key>End:        string("e") \n\
  43. <Key>Insert:        string("i") \n\
  44. <Key>Delete:        string("") \n\
  45. Ctrl<Key>Prior:        string("u") \n\
  46. Ctrl<Key>Next:        string("d") \n\
  47. <Key>Prior:        string("") \n\
  48. <Key>Next:        string("") \n\
  49. Shift<Key>Tab:        string("b") \n\
  50. Ctrl<Key>Right:        string("") \n\
  51. Ctrl<Key>Left:        string(" ")
  52.  
  53.  
  54. Note also that  Modifier<Key>Blah must be specified BEFORE <Key>Blah
  55. for both to work.
  56.  
  57. Rick Williams,
  58. M.I.S. Unit
  59. The Flinders University of South Australia.
  60.