SUMMARY: vt[12]00 client for OpenWindows

From: ia (@handel.cs.colostate.edu)
Date: Mon Oct 22 1990 - 19:31:20 CDT


Hi Folks,

Here's the summary of what I found out about a vt[12]00 emulation under
OpenWindows 2.0. Sorry for the delay in summarising, little things like
starting a user service kept cropping up :-)

The problem was....

>Subj: Need vt[12]00 client for OpenWindows 2.0
>

>Hi Folks,
>
> The subject line says it all really, namely we need a vt100 or vt200
>terminal emulator which runs under OpenWindows (native that is, not using
>svenv...) We already use the xterm demo (?) but it doesn't appear to
>understand the vt100 keypad fully, which is a pain since we have to
>connect to VAXen.

The main problem is with the type-4 keyboards (SLC's & co) which
emulate a PC keyboard (argh..) and combine the cursor/keypad in one
area. So Keypad 4 is also cursor left, keypad 6 is cursor right, etc
and you get these cursor actions when you want a keypad action.

The solutions: (subtitled "This is as good as it gets...")

0) get rid of the VAXen
   Actually I kinda liked this one but the Boss didn't... :-]

1) use one of the current SunView VT emulators under OW.

   I tried crttool from the rice archives, which unfortunately still
   gets the cursor keys/keypad confused i.e. keypad 8 is up arrow, not
   KP8 (sigh) otherwise this would be an acceptable solution. Also in
   the running was te100tool from Sun themselves which does get the
   keypad _exactly_ right (if you've got the patched version..:-) but
   this costs money so and we couldn't afford to install it on all our
   workstations.

2) Modify the keymap for xterm.

   This is probably the best thing to do, even though it's not perfect.
   I received a couple of keymap definitions (at the end of the
   article) which make life easier (if not perfect). In the course of
   my investigations the Sun hotline support informed me that xterm "is
   not a supported product." This kinda worries me...

3) use a OpenWindows/X11 client which emulates a vt100

   I received a beta-test copy of xvttool which provides vt100
   emulation and keypad emulation using on-screen buttons. This works
   quite well as long as you're comfortable with _lots_ of mouse work.
   Contact the author, Bruce Barnett <barnett@unclejack.crd.ge.com> for
   more info.

   I received a pointer to mterm, available from 132.206.1.1 in
   directory X/mterm.src. I retrieved it, but couldn't get it to work
   (X Error: BadAccess). This looks to do what I want but I don't have
   the time nor the knowledge to fix it.

In conclusion, I get along with the xterm keymap translations and I'll recommend that to our users.

Thank to all who replied, especially:

Peter Scott <pjs@gov.nasa.jpl.aristotle>
Mike Jipping <jipping@edu.hope.cs.frodo>
Rob ten Kroode <rtk@com.sun.holland.styx>
Maarten van Wijk <mvw@kub.nl>
Bruce Barnett <barnett@com.ge.crd.unclejack>
John M. Crowell <jmcrowell@edu.ucdavis>
Peter Gutmann <murphy!peterg@net.uu.uunet>
Greg Earle <earle@gov.nasa.jpl.poseur>

See y'all later...

Ian

---
Ian Angles, University Of St. Andrews Computing Laboratory.
angles@uk.ac.st-andrews / iangles@nsfnet-relay.ac.uk 
	"That's not Idle Time, that's _thinking_ time!!!"

============================================================================== Those Keymap translations ----- ------ ------------

From: Peter Scott <pjs@gov.nasa.jpl.aristotle>

*StringConversionWarnings: on *SunFunctionKeys: on *VT100*ScrollBar: on *VT100*SaveLines: 1000 *VT100*ScrollKey: on *VT100*tekGeometry: 100x100+500+400 XTerm*boldFont: XTerm*Font: 9x15 XTerm*TermName: vt100 *VT100.Translations: #override <Key>L1: string("note VMS keymap ON") string(0x0d ) keymap(VMS) *VT100.VMSKeymap.Translations: \ <Key>F3: string(0x1b) string("OA") \n\ <Key>F4: string(0x1b) string("OB") \n\ <Key>F5: string(0x1b) string("OD") \n\ <Key>F6: string(0x1b) string("OC") \n\ <Key>F7: string(0x1b) string("OS") \n\ <Key>F8: string(0x1b) string("Om") \n\ <Key>F9: string(0x1b) string("Ol") \n\ <Key>L1: string("note VMS keymap OFF") string(0x0d) keymap(None) \n\ <Key>R1: string(0x1b) string("OP") \n\ <Key>R2: string(0x1b) string("OQ") \n\ <Key>R3: string(0x1b) string("OR") \n\ <Key>R4: string(0x1b) string("Ow") \n\ <Key>R5: string(0x1b) string("Ox") \n\ <Key>R6: string(0x1b) string("Oy") \n\ <Key>R7: string(0x1b) string("Ot") \n\ <Key>R8: string(0x1b) string("Ou") \n\ <Key>R9: string(0x1b) string("Ov") \n\ <Key>R10: string(0x1b) string("Oq") \n\ <Key>R11: string(0x1b) string("Or") \n\ <Key>R12: string(0x1b) string("Os") \n\ <Key>R13: string(0x1b) string("Op") \n\ <Key>R14: string(0x1b) string("On") \n\ <Key>R15: string(0x1b) string("OM") \n

From: Peter Gutmann <murphy!peterg@net.uu.uunet>

xterm*VT100.translations: #override \ <Key>F11: string(0x1b) string("[A") \n\ <Key>F12: string(0x1b) string("[B") \n\ <Key>F13: string(0x1b) string("[C") \n\ <Key>F14: string(0x1b) string("[D") \n\ <Key>F8: string(0x1b) string("Op") \n\ <Key>F7: string(0x1b) string("OS") \n\ <Key>F6: string(0x1b) string("OR") \n\ <Key>F5: string(0x1b) string("OQ") \n\ <Key>F4: string(0x1b) string("OP") \n

From: Maarten van Wijk <mvw@kub.nl>

It is not hard to remap your keys under xwindows/openwindows. I have the following code in .Xdefaults for logging in to VAXen. ---------------------------------------------------------------------- *VT100*Translations: #override <Key>L1: keymap(vms) *VT100.vmsKeymap.translations: \ <Key>L2: keymap(None) \n\ <Key>R1: string(0x1b) string("[A") \n\ <Key>R2: string(0x1b) string("[B") \n\ <Key>R3: string(0x1b) string("[C") \n\ <Key>Num_Lock: string(0x1b) string("[D") \n\ <Key>R4: string(0x1b) string("OP") \n\ <Key>R5: string(0x1b) string("OQ") \n\ <Key>R6: string(0x1b) string("OR") \n\ <Key>KP_Subtract: string(0x1b) string("OS") \n\ <Key>R7: string(0x1b) string("Ow") \n\ <Key>R8: string(0x1b) string("Ox") \n\ <Key>R9: string(0x1b) string("Oy") \n\ <Key>KP_Add: string(0x1b) string("Om") \n\ <Key>Left: string(0x1b) string("Ot") \n\ <Key>R11: string(0x1b) string("Ou") \n\ <Key>Right: string(0x1b) string("Ov") \n\ <Key>R13: string(0x1b) string("Oq") \n\ <Key>Down: string(0x1b) string("Or") \n\ <Key>R15: string(0x1b) string("Os") \n\ <Key>Insert: string(0x1b) string("Op") \n\ <Key>KP_Decimal: string(0x1b) string("On") \n\ <Key>KP_Enter: string(0x1b) string("OM") ---------------------------------------------------------------------- Xterm uses the VT100 widget that enables you to remap the keys. Pressing L1 in a xterm window enables the new mapping, L2 disables. Next a picture how the keys are mapped. Sun keys. +------+------+------+------+ | Pause| PrSc | Break| Num | | | | | Lock | +------+------+------+------+ | = | / | * | - | | | | | | +------+------+------+------+ | 7 | 8 | 9 | | | | | | | +------+------+------+ + | | 4 | 5 | 6 | | | | | | | +------+------+------+------+ | 1 | 2 | 3 | | | | | | | +------+------+------+ Enter| | 0 | . | | | | | | +------+------+------+------+ corresponding VT100 keys. +------+------+------+------+ | Up | Down | Left | Right| | | | | | +------+------+------+------+ | PF1 | PF2 | PF3 | PF4 | | | | | | +------+------+------+------+ | 7 | 8 | 9 | | | | | | | +------+------+------+ - | | 4 | 5 | 6 | | | | | | | +------+------+------+------+ | 1 | 2 | 3 | | | | | | | +------+------+------+ Enter| | 0 | . | | | | | | +------+------+------+------+



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:05:59 CDT