Article View: gnu.epoch.misc
Article #1626Re: Epoch and Sun 4 keyboards
From: Gillmer J. Derge
Date: Mon, 20 Jan 1992 13:48
Date: Mon, 20 Jan 1992 13:48
52 lines
2909 bytes
2909 bytes
In article <1992Jan19.152150.30193@m.cs.uiuc.edu>, carroll@cs.uiuc.edu
(Alan M. Carroll) writes:
|>In article <1992Jan17.204624.25252@exu.ericsson.se>,
ebubra@ebu.ericsson.se (Bertil Askelid) writes:
|>>
|>> Does anyone know how to bind the Sun 4 L1-L10, F1-F12, R1-R15 to emacs
|>> functions, with all combinations of the modifiers shift, meta,
and control?
|>>
|>> What about the other keys like Help, Ins, Del, ...?
|>
|>Look in ./contrib/amc/keys.el for examples. For instance, I have the
|>"Help" key on the left bound to \C-h with
|>
|>(rebind-key "Help" nil "\C-h")
|>
|>For other modifiers, the nil can be replaced with a symbol or list of
|>symbols, which should be from the set 'shift, 'lock, 'control, 'meta,
|>'mod1 .. 'mod5. If this isn't enough, I can email you my current
|>keys.el file.
|>
|>--
|>Alan M. Carroll <-- Another casualty of applied metaphysics
|>Epoch Development Team
|>Urbana Il. "I hate shopping with the reality-impaired" - Susan
There's one additional point you might need to consider. The rebind-key
function takes an X keysym name as an argument. There aren't enough X keysyms
to handle all of Sun's function keys. As I recall, there are keysyms for
F1-F35, but Sun has 37 functions keys (including Left, Top, and Right).
As a result, the keys labeled F11 and F12 produce the same code as those
labeled L1 and L2 (I think the actual keysyms are the ones for F1 and F2). So
if you want to be able to distinguish between F11 and L1, and between F12 and
L2, you need to remap a couple of the keys to unused keysyms.
I chose to map F11 to KP_Space and F12 to KP_Tab, two keysyms that
aren't used on a Sun4 keyboard. The choice is really pretty arbitrary, and you
could just as easily remap L1 and L2, or even L1 and F12. The issue is
uniqueness.
I put the following commands in my .xinitrc to do this:
xmodmap -e "keycode 16=KP_Space"
xmodmap -e "keycode 18=KP_Tab"
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Gill Derge <derge@crd.ge.com>
P.O. Box 8
Schenectady, NY 12301 (518) 387-6382
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Technical Details
Message-ID:
<26571@crdgw1.crd.ge.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!crdgw1!visa!dergeReferences:
<1992Jan17.204624.25252@exu.ericsson.se> <1992Jan19.152150.30193@m.cs.uiuc.edu>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fc7ee,fd4adb8946f484ce X-Google-Attributes: gidfc7ee,public X-Google-ArrivalTime: 1992-01-20 06:02:14 PST Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!crdgw1!visa!derge From: derge@crd.ge.com (Gillmer J. Derge) Newsgroups: gnu.epoch.misc Subject: Re: Epoch and Sun 4 keyboards Message-ID: <26571@crdgw1.crd.ge.com> Date: 20 Jan 92 13:48:19 GMT References: <1992Jan17.204624.25252@exu.ericsson.se> <1992Jan19.152150.30193@m.cs.uiuc.edu> Sender: news@crdgw1.crd.ge.com Reply-To: derge@crd.ge.com Organization: GE Corporate R&D Center, Schenectady, NY Lines: 52