home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.windows.x
- Path: sparky!uunet!caen!malgudi.oar.net!chemabs!lwv26
- From: lwv26@cas.org (Larry W. Virden)
- Subject: Re: X11R5-based vt100 emulator needed
- Message-ID: <1992Aug13.180014.29202@cas.org>
- Followup-To: comp.windows.x
- Sender: usenet@cas.org
- Reply-To: lvirden@cas.org (Larry W. Virden)
- Organization: Nedriv Software and Shoe Shiners, Uninc.
- References: <4442@news.duke.edu>
- Date: Thu, 13 Aug 1992 17:57:24 GMT
- Lines: 57
-
- In article <4442@news.duke.edu> ndd@sunbar.mc.duke.edu (Ned Danieley) writes:
- :in order to use a local database, we have to be able to emulate
- :a vt100, complete with function keys. we'd like to use something
- :like xvttool, or tooltool, but xvttool is written for xview and
- :tooltool is written for sunview, and we don't run openwindows.
- :I have tried running a binary version of xvttool that was compiled
- :elsewhere, but it's not quite right under pure X11R5.
- :
- :does anyone know of an R5 vt100 emulator?
- :
- :(an alternative solution would be to remap the keyboard, but we'd
- :only want to do that for the one window that's using the database.
- :it seems that xmodmap remaps the server, so that's not suitable.)
- :
-
- One doesn't normally use xmodmap to change the function keys for an
- xterm, they use an xterm resource. For instance, if you were going to
- access an oracle application, you might have something like:
-
- xterm -name vt100 -e my.sqlforms.30.program
-
- and then, in the resources, have something like this:
-
-
- vt100*VT100.Translations: #override \
- <Key>R5: keymap(None) \n\
- <Key>KP_Enter: string(0x1B) string("OM") \n\
- <Key>R1: string(0x1B) string("OP") \n\
- <Key>R2: string(0x1B) string("OQ") \n\
- <Key>R3: string(0x1B) string("OR") \n\
- <Key>Num_Lock: string(0x1B) string("OS") \n\
- <Key>KP_Add: string(0x1B) string("Ol") \n\
- <Key>KP_Subtract: string(0x1B) string("Om") \n\
- <Key>KP_Decimal: string(0x1B) string("On") \n\
- <Key>Insert: string(0x1B) string("Op") \n\
- <Key>R13: string(0x1B) string("Oq") \n\
- <Key>Down: string(0x1B) string("Or") \n\
- <Key>R15: string(0x1B) string("Os") \n\
- <Key>Left: string(0x1B) string("Ot") \n\
- <Key>R11: string(0x1B) string("Ou") \n\
- <Key>Right: string(0x1B) string("Ov") \n\
- <Key>R7: string(0x1B) string("Ow") \n\
- <Key>Up: string(0x1B) string("Ox") \n\
- <Key>R9: string(0x1B) string("Oy") \n\
- <Key>F9: string(0x1B) string("OA") \n\
- <Key>F10: string(0x1B) string("OB") \n\
- <Key>F28: string(0x7F) \n\
- <Key>SunXK_F37: string(0x1B) string("OC") \n\
- <Key>SunXK_F36: string(0x1B) string("OD")
-
- Now, when when your sqlforms window starts up, you get vt100 function keys,
- but your other xterm windows remain unchanged.
- --
- Larry W. Virden UUCP: osu-cis!chemabs!lvirden
- Same Mbox: BITNET: lvirden@cas INET: lvirden@cas.org
- Personal: 674 Falls Place, Reynoldsburg, OH 43068-1614
- America Online: lvirden@aol.com
-