rodgers@maxwell.mmwb.ucsf.edu (08/19/90)
Dear Fellow Netlanders, Appended is a first (rather pathetic) attempt at remapping the SPARCstation keyboard under OpenWindows 2.0 (supposedly X11R4 compliant), done in the absence of the O'Reilly X windows manual set (on order). This is based on some groping with the xev and xmodmap commands. I post it in the hope that it will inspire someone out there to do it right and post the results... One can put the command: xmodmap .xmodmaprc in the .xinitrc file, then put the appended text into the file .xmodmaprc; it maps the right keypad (in the default setup from Sun, F1 is mapped to the Help function; we map F1 into Escape, as we find we are often hitting F1 when reaching for the escape key, and there is already a Help key elsewhere on the keyboard). Several problems: 1) When I try to include the plus key (keycode 132), I get an error message about the keycode being out of range. 2) I have not tried to map for shifted positions. Ideally, the keys labelled "End," "PgDn," "Del," "Ins," "PgUp," Home," etc. should do appropriate things inside vi (or other fine editor), but I haven't figured out how to do that yet. The "Num Lock" key should somehow switch the keypad into numerical mode, much as the caps lock key works for alphabetic characters. OK, the gauntlet has been flung. Make a fool of me, please! Cheerio, Rick Rodgers -------------------------------------------------------------------------------- ! ! Example: ! ! To install function key "F1" as an Open Look "Help" key ! (precluding its use by applications): ! keysym F1 = Help ! ! Set F1 to escape and do provisional mapping of numerical keypad: ! keysym F1 = Escape Escape keysym R13 = 1 keysym Down = 2 keysym F35 = 3 keysym Left = 4 keysym F31 = 5 keysym Right = 6 keysym F27 = 7 keysym Up = 8 keysym F29 = 9 keysym F24 = equal keysym F25 = slash keysym F26 = asterisk keycode 57 = period keycode 78 = minus keycode 97 = Return keycode 101 = 0 !keycode 132 = plus ! ! end of file R. P. C. Rodgers, M.D. (415)476-8910 (work) 664-0560 (home) UCSF Laurel Heights Campus UUCP: ...ucbvax.berkeley.edu!cca.ucsf.edu!rodgers 3333 California St., Suite 102 ARPA: rodgers@maxwell.mmwb.ucsf.edu San Francisco CA 94118 USA BITNET: rodgers@ucsfcca