Subject: Re: arrow keys in 1.4
To: Anders Magnusson <ragge@ludd.luth.se>
From: Michael Kukat <michael@camaronet.de>
List: port-vax
Date: 04/29/1999 17:09:49
Hi !

> > Are my arrow keys broke (possible, other keys are), or do the arrow keys
> > not do anything in 1.4 Alpha? Running on a vs3100/38 with LK201.
> > I never ran 1.3.* so I don't know if it has been this way forever or not.
> > Thanks.
> > 
> The key translation on the in-box keyboards is not complete, there are 
> lots of things that do not work as expected/meant to. I will probably
> fix this in the future when I fix the X support.

To enable the keys for now, you only have to change a little bit in
/usr/src/sys/arch/vax/vsa/lkc.c

Change line 92 from "int hej;" to "int hej,i;"

change the following block at line 100 upwards:

        if (hej > 255) {
#ifdef notdef /* XXX don't handle this for now */
                cp = q_special[hej & 255];
                wsdisplay_kbdinput(wsdisplay_cd.cd_devs[0], cp, strlen(cp));
#endif

to the following:

        if (hej > 255) {
                cp = q_special[hej & 255];
                for(i = 0; i < strlen(cp), i ++) wsdisplay_kbdinput(wsdisplay_cd.cd_devs[0], cp[i]);

Line numbers may differ, but you should be able to locate the correct places.
Didn't test it at the moment, but i did it this way some time ago and arrows
and function keys worked fine.

(Ragge: What about enabling this as long as there is no better way ?)

so long... Michael