[comp.emacs] Summary of SUN Key Mappings

hallett@gemed (Jeff Hallett x5163 ) (12/12/89)

Howdy folks.

As promised,  I am summarizing  the responses I  received for figuring
out the Sun key mappings and how to reconfigure them.

First of all, I hide  my head in  shame  because  90%  of the  answers
pointed me to   lisp/term/sun.el in the  standard distribution.   This
file contains the code used to configure the various Sun keys to maps.

Reconfiguring the keys is simple - Emacstool  uses the suntool-map and
Emacs   from the console  uses  the   sun-raw-map.  There  are  hooks,
suntool-map-hooks and sun-raw-map-hooks that are called to reconfigure
the two maps (respectively).

For the sun-raw-map, the keys are listed as follows:

L1-HELP = 192z-207z, F2-F12 = 225z-235z, R1-R15 = 208z-222z, Ins=247z,
Del = 248z, `-` = 254z, '+' = 253z, Enter=250z, NumLock = 255z

So,  to   set   the   Undo  key,  one would    add   the line in   the
sun-raw-map-hooks: (define-key sun-raw-map "195z" 'keyboard-quit).

The suntool-map sequence is similar.  L1=al, L2=bl (get the pattern?).
Similarly, R1=ar.  The function keys are the "top"  keys so F2=bt.  To
denote the "shift"   modifier, capitalize the keypad  character;  e.g.
<shift>-L1 = "aL".  Not all the  keys are  mappable in the suntool-map
as they are trapped by suntools - F1 for example.

sun-esc-bracket must be set to 't' in your .emacs file in order to use
the hooks properly.


Pretty simply  stuff.  I   appreciate the patience  of all   those who
responded.  The moral:  grep the distribution more thoroughly. :^)



--
	     Jeffrey A. Hallett, PET Software Engineering
      GE Medical Systems, W641, PO Box 414, Milwaukee, WI  53201
	    (414) 548-5163 : EMAIL -  hallett@gemed.ge.com
		  Est natura hominum novitatis avida