Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cornell!uw-beaver!rice!sun-spots-request From: pnakada@oracle.com (Paul Nakada) Newsgroups: comp.sys.sun Subject: Re: Need X-based vt1xx emulator for Sun Message-ID: <4258@brazos.Rice.edu> Date: 3 Jan 90 01:13:21 GMT Sender: root@rice.edu Organization: Sun-Spots Lines: 67 Keywords: Windows Approved: Sun-Spots@rice.edu X-Refs: Original: v8n226 X-Sun-Spots-Digest: Volume 9, Issue 7, message 1 of 9 Someone said that this may be of use to some people out there.. I hope this is not a waste of bandwidth, but I have heard of many people with the same problem. On a related note, could someone tell me how to map keys with key codes > 127? the Xsun server barfs on them.. This is how to get a vt100 keypad on a sun Sparc 1 This is as close as I could get it... this is the layout... +-----------------------+ | PF1 | PF2 | PF3 | PF4 | |-----+-----+-----+-----| | , | / | * | - | |-----+-----+-----+-----| | 7 | 8 | 9 | n | |-----+-----+-----+ i | | 4 | 5 | 6 | l | |-----+-----+-----+-----| | 1 | 2 | 3 | ENT | |-----------+-----+ | | 0 | . | | |-----------+-----+-----| since this displaces the cursor keys on the keypad, I had to remap them... Idealy to the four useless keys on the bottom right of the normal keysection, but the right meta key is unmappable because of server problems. So, I mapped the four arrow keys to the F9 - F12 function keys at the top of the keyboard... BTW.. for the best vt100 emulation use an xterm with font 8x13 (which is actually the old x10 vt100 font... here's how I start up a vt100 session xterm -sf -fn vt -fb vtbold The -sf is crucial, and as usual it's undocumented (I happened to be browsing the xterm source when i noticed it.) well.. here's the xmodmap file that goes along with this... hope this helps.. -Paul Nakada pnakada@oracle.com keycode 28 = KP_F1 keycode 29 = KP_F2 keycode 30 = KP_F3 keycode 105 = KP_F4 keycode 75 = KP_7 keycode 76 = KP_8 keycode 77 = KP_9 keycode 98 = KP_4 keycode 99 = KP_5 keycode 100 = KP_6 keycode 119 = KP_1 keycode 120 = KP_2 keycode 121 = KP_3 keycode 101 = KP_0 keycode 57 = KP_Decimal keycode 97 = KP_Enter keycode 54 = KP_Multiply keycode 53 = KP_Divide keycode 52 = KP_Separator keycode 78 = KP_Subtract keycode 25 = Left keycode 14 = Right keycode 16 = Up keycode 18 = Down