[comp.windows.x] arrow function keys on sun4

lamson@el1.crd.ge.com (scott h lamson) (12/28/90)

Can anyone tell me how to set the arrow function keys on a sun4
keyboard to control-f, c-b, c-n, and c-p?  I can reset all the keys
except the four arrow keys(R8, R10, R12, R14), that i want to use 
for the korn shell emacs editing mode.  These keys seem to be
translated somewhere to esc-[A, etc before xterm sees them.  I am
running sunOS 4.0, openwindows 2.0, and the mwm window manager.  I use
xterm as a terminal emulator.  

thanks for any help you can provide...

scott
--
        Scott|  ARPA:      lamson@crd.ge.com
       Lamson|  UUCP:      uunet!crd.ge.com!lamson
(518)387-5795|  UUCP:      uunet!sierra.crd.ge.com!lamson
General Electric Corporate Research and Development

mouse@LARRY.MCRCIM.MCGILL.EDU (12/30/90)

> Can anyone tell me how to set the arrow function keys on a sun4
> keyboard to control-f, c-b, c-n, and c-p?

This is not possible in general.  It can be done for xterm with the
Translations resource, but that does not affect other clients.

> I can reset all the keys except the four arrow keys(R8, R10, R12,
> R14), that i want to use for the korn shell emacs editing mode.

> These keys seem to be translated somewhere to esc-[A, etc before
> xterm sees them.

This is definitely not the problem, or if it is your server is doing
something truly strange and wonderful; xterm should just be getting
key-down and key-up events just as for any other key....

You don't say how you're trying to "reset" keys.  If you've managed to
get control characters on other keys, you clearly aren't using xmodmap,
so I would guess you're using the Translations resource.  In that case,
the problem that comes to mind as most likely is that you're trying to
set the translation for R8, R10, R12, or R14 instead of Up, Left,
Right, or Down.

If this is the problem, you can either change your Translations
resource to use the Up/Left/Right/Down names (this is the change I
would prefer) or you can use xmodmap to remap those buttons to the
R8/R10/R12/R14 keysyms, and then reset the translations for R8/etc.

In general, if something odd is happening with keys, use xev to check
to make sure that the keycodes and/or keysyms (as appropriate) that
you're using are really the ones you want to use....  (Just fire up xev
and type at it; it will print out keycode values and keysym names for
the keys you type.)

					der Mouse

			old: mcgill-vision!mouse
			new: mouse@larry.mcrcim.mcgill.edu