From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f7344,a66155978feedf3c X-Google-Attributes: gidf7344,public X-Google-Thread: 1164f8,a66155978feedf3c X-Google-Attributes: gid1164f8,public X-Google-Thread: 10b612,f9e1b1bfa4b29738,start X-Google-Attributes: gid10b612,public X-Google-ArrivalTime: 1992-04-15 08:50:11 PST Xref: sparky comp.os.vms:8374 comp.sys.dec:2579 comp.unix.ultrix:3843 Path: sparky!uunet!zaphod.mps.ohio-state.edu!mips!darwin.sura.net!jvnc.net!netnews.upenn.edu!msuinfo!rudolf.nscl.msu.edu!fox From: fox@rudolf.nscl.msu.edu (Ron Fox) Newsgroups: comp.os.vms,comp.sys.dec,comp.unix.ultrix Subject: Re: Using SUN workstations with VAXen. Message-ID: <1992Apr15.155011.11822@msuinfo.cl.msu.edu> Date: 15 Apr 92 15:50:11 GMT Sender: news@msuinfo.cl.msu.edu Reply-To: fox@rudolf.nscl.msu.edu (Ron Fox) Followup-To: 1992Apr13.124858.27726@msuinfo.cl.msu.edu Organization: National Superconducting Cyclotron Lab. -- Many thanks to those who were able to tell me how to re-map SUN keymaps so that I can get a usable PF keypad when logged in to VAXen. I am still looking for a way to remove the missing font warning from the server when things like VUE$MASTER and dxterm. Regarding keyboard mapping In particular, Kurt Wampler suggested using the xterm VT-100 terminal emulator program and using the following resource file additions to re-map the keyboard: xterm*VT100.Translations: #override \n\ F3: string(0x1b) string("[A") \n\ F4: string(0x1b) string("[B") \n\ F5: string(0x1b) string("[D") \n\ F6: string(0x1b) string("[C") \n\ F7: string(0x1b) string("OS") \n\ SunF37: string(0x1b) string("Om") \n\ F9: string(0x1b) string("Ol") \n\ R1: string(0x1b) string("[A") \n\ R2: string(0x1b) string("[B") \n\ R3: string(0x1b) string("[D") \n\ Num_Lock: string(0x1b) string("[C") \n\ R4: string(0x1b) string("OP") \n\ R5: string(0x1b) string("OQ") \n\ R6: string(0x1b) string("OR") \n\ KP_Subtract: string(0x1b) string("OS") \n\ R7: string(0x1b) string("Ow") \n\ R8: string(0x1b) string("Ox") \n\ Up: string(0x1b) string("Ox") \n\ R9: string(0x1b) string("Oy") \n\ R10: string(0x1b) string("Ot") \n\ Left: string(0x1b) string("Ot") \n\ R11: string(0x1b) string("Ou") \n\ R12: string(0x1b) string("Ov") \n\ Right: string(0x1b) string("Ov") \n\ R13: string(0x1b) string("Oq") \n\ R14: string(0x1b) string("Or") \n\ Down: string(0x1b) string("Or") \n\ F35: string(0x1b) string("Os") \n\ KP_0: string(0x1b) string("Op") \n\ KP_Decimal: string(0x1b) string("On") \n\ KP_Enter: string(0x1b) string("OM") \n\ KP_Add: string(0x1b) string("Ol") Jim Pflugrath suggested using xmodmap to re-map the keyboard for the entire set of X windows using xmodmap. His input file follows: Jim ! Last modified: 9-Sep-1990 ! ! Input file for xmodmap. This file is used to re-map a Sun4 right keypad ! into a VT100 style right keypad. ! ! See 'man xmodmap' for more details. ! ! Usage: xmodmap this_file ! ! Or place following 3 lines into ~/.xinitrc !if [ -f $HOME/.xmodmaprc ]; then ! xmodmap $HOME/.xmodmaprc # Install user-defined keyboard mapping !fi ! ! ! +-------+-------+-------+-------+ ! Keycode| 28 | 29 | 30 | 105 | ! | | | | | ! VT100 | <- | -> | , |Nm_Lock| ! +-------+-------+-------+-------+ ! | 52 | 53 | 54 | 78 | ! | | | | | ! | PF1 | PF2 | PF3 | PF4 | ! +-------+-------+-------+-------+ ! | 75 | 76 | 77 | 132 | ! | | | | | ! | 7 | 8 | 9 | - | Shift 8 is Up ! +-------+-------+-------+ | Shift 4 is Left ! | 98 | 99 | 100 | | Shift 6 is Right ! | | | | , | Shift 2 is Down ! | 4 | 5 | 6 | | ! +-------+-------+-------+-------+ To get the Sun4 keys as labelled ! | 119 | 120 | 121 | 97 | on the keypad be sure that ! | | | | | Num_Lock is engaged (except for ! | 1 | 2 | 3 | E | the + key. ! +-------+-------+-------+ n | ! | 101 | 57 | t | ! | | | e | ! | 0 | . | r | ! +---------------+-------+-------+ ! keycode 28 = Left keycode 29 = Right keycode 30 = KP_Separator comma keycode 52 = KP_F1 KP_Equal keycode 53 = KP_F2 KP_Divide keycode 54 = KP_F3 KP_Multiply keycode 78 = KP_F4 KP_Subtract ! ! The Sun4 + key is really 2 VT100 keys: , and - so use the Shift modifier ! to mimic this. This means the loss of the normal Sun4 function ! keycode 132 = KP_Separator KP_Subtract KP_Add keycode 75 = KP_7 keycode 76 = KP_8 Up keycode 77 = KP_9 keycode 98 = KP_4 Left keycode 99 = KP_5 keycode 100 = KP_6 Right keycode 119 = KP_1 keycode 120 = KP_2 Down keycode 121 = KP_3 keycode 101 = KP_0 keycode 57 = KP_Decimal keycode 97 = KP_Enter I chose to go the xterm direction with a few additional resources to change the window geometry and enlarge the fonts so that they're readable. My reasoning here was that that would preserve the functionality of the SUN keyboard when I was running windows that are 'SUN' generated. Ron Fox | FOX@MSUNSCL.BITNET | Where the name NSCL | FOX@RUDOLF.NSCL.MSU.EDU | goes on before Michigan State University | MSUHEP::RUDOLF::FOX | the quality East Lansing, MI 48824-1321 | | goes in. USA