Arrow keys and Type 4 keyboard

Guy Harris auspex!guy at uunet.uu.net
Wed Jun 28 10:25:10 AEST 1989


>Here's another gripe related to the new "Type-4" keyboard:

No, it's not.  The keyboard does *NOT* transmit escape sequences on the
serial port on its cable; it transmits "up/down" codes, which are 7 bits
of keystation number (completely unrelated to the character on the key),
and one bit of up/down indication.

Various pieces of software (the keyboard driver software when running on
the bare console or under SunView, and various bits of client and/or
server code when running under X11 or NeWS) translate those up/down codes
into event codes and characters, ultimately into the escape sequences
listed in the "termcap" entries.

There is a SunView preference item settable from "defaultsedit" that
specifies whether the translation table in the keyboard driver should be
set up to make the arrow keys act as arrow keys (i.e., give the ANSI
escape sequences for cursor motion, like <ESC>[A and so on) or function
keys (R8, R10, R12, R14 - which are the <ESC>[215z and the like).  It's
the "Arrow_keys" item in the "Input" category.

The problem you're having appears to be that somebody in Sun East Coast
Division decided to make the 386i SunOS version of "/etc/termcap"
different from the one on the rest of SunOS - SunOS on the West Coast
("big-endian") Sun-[234] machines has "ku" and company defined as arrow
keys, regardless of whether the machine has a Type 3 or Type 4 keyboard. 

What you want to do is:

	1) make sure the Arrow_keys entry says "set up the keys as arrow
	   keys and not Rn function keys";

	2) change the "termcap" and "terminfo" entries on the 386i to
	   match those on the big-endian Suns;

	3) send a message to the people in Sun ECD telling them to put
	   the 386i back the way the rest of the product line is.



More information about the Comp.sys.sun mailing list