Article 128315 of comp.os.vms: Path: nntpd.lkg.dec.com!pa.dec.com!decwrl!enews.sgi.com!lll-winken.llnl.gov!fnnews.fnal.gov!nntp-server.caltech.edu!seqaxp.bio.caltech.edu!MATHOG From: mathog@seqaxp.bio.caltech.edu Newsgroups: comp.os.vms,comp.sys.dec Subject: Re: Q: Add DO and KEYPAD MINUS to AlphaStation keyboard? Date: 31 Aug 1995 15:55:09 GMT Organization: Biology Division, Caltech, Pasadena, CA USA Lines: 55 Message-ID: <424m0u$5sm@gap.cco.caltech.edu> References: <144543@cup.portal.com> Reply-To: mathog@seqaxp.bio.caltech.edu NNTP-Posting-Host: seqaxp.bio.caltech.edu Xref: nntpd.lkg.dec.com comp.os.vms:128315 comp.sys.dec:35195 In article <144543@cup.portal.com>, Chris_F_Chiesa@cup.portal.com writes: >I've recently been given charge of several AlphaStations, eventually to >run Windows NT (odd that I see NO Usenet Newsgroup for NT yet) but currently >running OpenVMS AXP V6.2. The purpose is to run my company's character- >cell-oriented turnkey software application, in a DECterm window. The >application relies heavily on the "DO" key, which is absent from the Alpha- >Station's PC-style keyboard. Also missing are "Keypad Minus" (no physical >key where this one "should" be; just a double-height "Keypad Comma" key >wanna-be) and (as far as I can tell) "<" and ">" (despite the presence of >key CAPS labeled with < and > ). > >I know DW/Motif well enough to know about resource files; but I don't >know which file to edit for "the DW/Motif environment itself," nor what >specifically to put into it in EITHER (DECterm -or- DW/Motif) case. >Can you help? > You can use xmodmap to redefine whichever keys you need. Do this: $ @decw$utils:DECW$DEFINE_UTILS $ xev Hit keys, note the keycodes that you see. Figure out which keys you want to define/redefine. For instance, say you want to define shift - as . Press the big key and write down the keycode you see. When you have enough written down, exit that. Then do: $ xmodmap -h (To see what it does and how to use it) Create a modmap.dat file containing line(s) like this: keycode 85 = KP_Separator KP_Subtract For MicroX-win that defines shift keypad + as keypad -. Note that the keycode is probably different on the Alphastation. You then force the modmap into the server with a command like $ xmodmap modmap.dat There are a variety of ways you could do this, for instance, in your login. com, or in sylogin.com (but first be sure the session is running on the console of one of the alphastations), as an automatic startup item in the session manager (again, after checking where the session is running.) Good luck, David Mathog mathog@seqaxp.bio.caltech.edu Manager, sequence analysis facility, biology division, Caltech