Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!samsung!aplcen!haven!umbc3!umbc5.umbc.edu!bernie From: bernie@umbc5.umbc.edu (Bernard J. Duffy) Newsgroups: comp.sys.hp Subject: .xmodmaprc file for HP X-window users wanting to use VAX/VMS Keywords: keypad xmodmap Message-ID: <2825@umbc3.UMBC.EDU> Date: 22 Feb 90 01:34:14 GMT Sender: newspost@umbc3.UMBC.EDU Reply-To: bernie@umbc5.umbc.edu.UUCP (Bernard J. Duffy) Organization: University of Maryland, Baltimore County Lines: 52 Being that our site has a DEC VAX/VMS machine that HP workstation users still use, I found it necessary to make the HP keypad operate just like it does with a VTxxx terminal. Below is the xmodmap commands file I use. Before this there's a weird mapping where I'm reaching above the keypad to get the PF keys and ignoring the key. It also, thanks to the code in HP's man page for xmodmap, includes the mapping to switch the and keys to the same layout as the DEC LK201 keyboad (VT[23]..) ! It uses keysym's so it can only be executed once (xmodmap -f .xmodmaprc in .xsession). -------------- cut here ------------------- .xmodmaprc ---------- ! This .xmodmaprc assumes that we're running with a clear map (BJD 2/20/90) ! ! make Backspace into Delete keysym BackSpace = Delete ! ! ! Switch the Control-Left with the Caps_Lock keys' functionality ! 1) remove Caps from "Lock" set 2) remove Control_L from Control set ! 3) make Caps_Lock the new Control_L key (keysym Control_L = Caps_Lock) ! 4) make Control_L the new Caps_Lock key (keysym Caps_lock = Control_L) ! 5) add this new "Caps_Lock" key to the Lock modifier set ! 6) add this new "Control_L" key to the Control modifier set remove Lock = Caps_Lock remove Control = Control_L keysym Control_L = Caps_Lock keysym Caps_Lock = Control_L add Lock = Caps_Lock add Control = Control_L ! ! make F5 into Escape (ie. hit F1 to send an character) like VT200 keysym F5 = Escape ! ! Modify the keypad layout to match DEC's VT*** : ! KP_F1 is "Gold"... set to KP_Multiply (*) ! KP_F2 is "Help"... set to KP_Divide (/) ! KP_F3 is "Find"... set to KP_Plus (+) ! KP_F4 is "DelL"... set to KP_Subtract (-) ! KP_Subtract is "DelW"... set to KP_Enter (Enter) keysym KP_Enter = KP_Subtract keysym KP_Multiply = KP_F1 keysym KP_Divide = KP_F2 keysym KP_Add = KP_F3 keysym KP_Subtract = KP_F4 -------------- cut here ------------------- .xmodmaprc ---------- Enjoy, Bernie (left the comments in fyi sake) Bernie Duffy Systems Programmer II | Bitnet : BERNIE@UMBC2 Academic Computing - L005e | Internet : BERNIE@UMBC2.UMBC.EDU Univ. of Maryland, Baltimore County | UUCP : ...!uunet!umbc3!bernie Baltimore, MD 21228 (U.S.A.) | W: (301) 455-3231 H: (301) 744-2954