SUMMARY: Keyboard remapping

From: Jack Reiner (jjr2@edi-nola.com)
Date: Sat Aug 19 1995 - 04:12:21 CDT


SUMMARY: Keyboard remapping

Original post:

>Hello All,
>
>I need to remap X-terminal Function keys to act as the SUN-4 keyboard
>Front, Open, Copy, and Paste keys.
>
>These X-terminals are booting from a 1000 running Sol 2.3, OpenWindows 3.3.
>
>Answerbook and man pages did not appear to contain the pertinent information.
>
>If anybody can point me in the right direction, or better yet knows how to
>do this, please let me know.
>
>Thank you.

What a great bunch of people on this list! Give yourselves a hand!

xmodmap is the unanimous winner.

I created the following file named .xmodmaprc

        keycode 117 = Home
        keycode 114 = End
        keycode 121 = Insert
        keycode 134 = Prior
        keycode 131 = Next
        keycode 122 = Delete
        !
        ! Sun Cut
        keycode 112 = F20
        ! Sun Paste
        keycode 120 = F18
        ! Sun Copy
        keycode 119 = F16
        ! Sun Undo
        keycode 118 = F14
        ! Sun Find
        keycode 110 = F19
        ! Sun Front
        keycode 109 = F15

Then, at the beginning of the users' .cshrc files, I added this line:

xmodmap $HOME/.xmodmaprc

The keyboard is a PC 101-style layout. The users wanted to use the six
"Insert,Home,Page-Up,Delete,End,Page-Dn" keys, located above the arrow
keys, for "Cut,Copy,Paste,Front,Find,Undo" and did not care about the
remaining Sun "L" keys.

Some special notes:

The Sun "L" keys are actually F11-F20. Special thanks to
steve@ma.hw.ac.uk (Steve Mowbray) for specifically mentioning this.

" [xmodmap] changes the mapping of X key events to keysyms for a given X
display. That is, its effects are global to that display, rather than
set up per client. This may be an advantage or a disadvantage in your
particular case." Special thanks to Dan Razzell <razzell@cs.ubc.ca>

A search for xmodmap in AnswerBook returned zero entries, although
man pages had a lengthy entry.

The hardware involved:

HP 700RX x-terminals booting from SPARCserver 1000 running Sol 2.3,
OpenWindows 3.3 and HP's Enware 5.1 (boot software for the xterms that
runs on the SPARCserver).

And a big THANK YOU to all who responded:

Boyd Fletcher <boyd@ccpo.odu.edu>
heggli@htl-bw.ch (Heggli Beat)
Kevin.Sheehan@uniq.com.au (Kevin Sheehan {Consulting Poster Child})
steve@ma.hw.ac.uk (Steve Mowbray)
"Srinivasa R. Yalavarthy" <srini@concorde.com>
nlf@aluxpo.att.com (Nelson Fernandez)
"Jeff J. Dingbaum" <dingbaum@hep.net>
kevin@virtual.virtual.com (Kevin Sampron [Systems Engineer - Advanced
billh@dcvast.com (Bill Holzapfel)
Khanh Vo khanh.t.vo@bagate.bell-atl.com
Dan Razzell <razzell@cs.ubc.ca>
-----------------------------------------------

Regards, Structural Analysis Computer System
Jack Reiner Engineering Dynamics, Inc.
jjr@edi-nola.com 2113 38th Street
(504) 443-5481 Kenner, LA 70065 USA



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:10:31 CDT