chan@batman.UUCP (Milo Chan) (12/19/90)
Is there a way to set up the numeric keypad so that pressing the NumLock key actually makes the keypad send the characters represented on top of the key caps (i.e., 0-9.=/*-+) ? If this isn't possible, can the keypad be configured (via xmodmap, perhaps? I am rather unfamiliar with that utility) to always send those characters? This feature is very important for numeric-intensive data entry. I am writing applications using the OI ("Object Interface") library (an X toolkit from Solbourne Computer Corp. written in C++) and either Sun OpenWindows 2.0 or plain X11/R4 from MIT running on Sun SparcStation 1+'s. Any suggestions/solutions would be greatly appreciated. Please send email directly and I will summarize. Thanks! Milo A. Chan -- Shearson Lehman Brothers, Inc. / Email: uunet!slcpi!doozer!chan 388 Greenwich St., 11th Flr. / "slcpi!doozer!chan"@uunet.UU.NET New York, NY 10013, USA / chan@fractl.tn.cornell.edu Tel: (212) 464-3808 / Fax: (212) 464-3011
mouse@LARRY.MCRCIM.MCGILL.EDU (12/20/90)
> Is there a way to set up the numeric keypad so that pressing the > NumLock key actually makes the keypad send the characters represented > on top of the key caps (i.e., 0-9.=/*-+) ? You say you're using Sun SS1+s; I assume you have the type-4 keyboard? > If this isn't possible, can the keypad be configured (via xmodmap, > perhaps? I am rather unfamiliar with that utility) to always send > those characters? This is workable. Try something like the following: xmodmap - << EOF keysym R13 = 1 keysym R14 = 2 keysym R15 = 3 keysym R10 = 4 keysym R11 = 5 keysym R12 = 6 ....etc EOF You will have to fill in the rest of the table, of course; you can use xev to find out what keys are what. If this might be run more than once, you might want to use keycodes instead; xev reports those as well. Depending on the application, you might be able to use KP_0, KP_1, KP_2, etc, instead of 0, 1, 2, etc. This is to be preferred if it works, since it involves less lying.... der Mouse old: mcgill-vision!mouse new: mouse@larry.mcrcim.mcgill.edu