home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / windows / x / 15205 < prev    next >
Encoding:
Text File  |  1992-08-13  |  3.0 KB  |  71 lines

  1. Newsgroups: comp.windows.x
  2. Path: sparky!uunet!caen!malgudi.oar.net!chemabs!lwv26
  3. From: lwv26@cas.org (Larry W. Virden)
  4. Subject: Re: X11R5-based vt100 emulator needed
  5. Message-ID: <1992Aug13.180014.29202@cas.org>
  6. Followup-To: comp.windows.x
  7. Sender: usenet@cas.org
  8. Reply-To: lvirden@cas.org (Larry W. Virden)
  9. Organization: Nedriv Software and Shoe Shiners, Uninc.
  10. References: <4442@news.duke.edu>
  11. Date: Thu, 13 Aug 1992 17:57:24 GMT
  12. Lines: 57
  13.  
  14. In article <4442@news.duke.edu> ndd@sunbar.mc.duke.edu (Ned Danieley) writes:
  15. :in order to use a local database, we have to be able to emulate
  16. :a vt100, complete with function keys. we'd like to use something
  17. :like xvttool, or tooltool, but xvttool is written for xview and
  18. :tooltool is written for sunview, and we don't run openwindows.
  19. :I have tried running a binary version of xvttool that was compiled
  20. :elsewhere, but it's not quite right under pure X11R5.
  21. :
  22. :does anyone know of an R5 vt100 emulator?
  23. :
  24. :(an alternative solution would be to remap the keyboard, but we'd
  25. :only want to do that for the one window that's using the database.
  26. :it seems that xmodmap remaps the server, so that's not suitable.)
  27. :
  28.  
  29. One doesn't normally use xmodmap to change the function keys for an
  30. xterm, they use an xterm resource.  For instance, if you were going to
  31. access an oracle application, you might have something like:
  32.  
  33. xterm -name vt100 -e my.sqlforms.30.program
  34.  
  35. and then, in the resources, have something like this:
  36.  
  37.  
  38. vt100*VT100.Translations: #override \
  39.     <Key>R5:            keymap(None) \n\
  40.     <Key>KP_Enter:      string(0x1B) string("OM") \n\
  41.     <Key>R1:            string(0x1B) string("OP") \n\
  42.     <Key>R2:            string(0x1B) string("OQ") \n\
  43.     <Key>R3:            string(0x1B) string("OR") \n\
  44.     <Key>Num_Lock:      string(0x1B) string("OS") \n\
  45.     <Key>KP_Add:        string(0x1B) string("Ol") \n\
  46.     <Key>KP_Subtract:   string(0x1B) string("Om") \n\
  47.     <Key>KP_Decimal:    string(0x1B) string("On") \n\
  48.     <Key>Insert:        string(0x1B) string("Op") \n\
  49.     <Key>R13:           string(0x1B) string("Oq") \n\
  50.     <Key>Down:          string(0x1B) string("Or") \n\
  51.     <Key>R15:           string(0x1B) string("Os") \n\
  52.     <Key>Left:          string(0x1B) string("Ot") \n\
  53.     <Key>R11:           string(0x1B) string("Ou") \n\
  54.     <Key>Right:         string(0x1B) string("Ov") \n\
  55.     <Key>R7:            string(0x1B) string("Ow") \n\
  56.     <Key>Up:            string(0x1B) string("Ox") \n\
  57.     <Key>R9:            string(0x1B) string("Oy") \n\
  58.     <Key>F9:            string(0x1B) string("OA") \n\
  59.     <Key>F10:           string(0x1B) string("OB") \n\
  60.     <Key>F28:           string(0x7F) \n\
  61.     <Key>SunXK_F37:        string(0x1B) string("OC") \n\
  62.     <Key>SunXK_F36:        string(0x1B) string("OD")
  63.  
  64. Now, when when your sqlforms window starts up, you get vt100 function keys,
  65. but your other xterm windows remain unchanged.
  66. -- 
  67. Larry W. Virden                 UUCP: osu-cis!chemabs!lvirden
  68. Same Mbox: BITNET: lvirden@cas  INET: lvirden@cas.org
  69. Personal: 674 Falls Place,   Reynoldsburg, OH 43068-1614
  70. America Online: lvirden@aol.com
  71.