Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/vax/vsa Make LK201 arrow keys work again.



details:   https://anonhg.NetBSD.org/src/rev/57c27fe42b73
branches:  trunk
changeset: 472432:57c27fe42b73
user:      ragge <ragge%NetBSD.org@localhost>
date:      Thu Apr 29 16:58:58 1999 +0000

description:
Make LK201 arrow keys work again.

diffstat:

 sys/arch/vax/vsa/lkc.c |  12 +++++++-----
 1 files changed, 7 insertions(+), 5 deletions(-)

diffs (38 lines):

diff -r 8b4544793620 -r 57c27fe42b73 sys/arch/vax/vsa/lkc.c
--- a/sys/arch/vax/vsa/lkc.c    Thu Apr 29 16:43:33 1999 +0000
+++ b/sys/arch/vax/vsa/lkc.c    Thu Apr 29 16:58:58 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: lkc.c,v 1.9 1999/03/13 15:16:48 ragge Exp $ */
+/*     $NetBSD: lkc.c,v 1.10 1999/04/29 16:58:58 ragge Exp $ */
 /*
  * Copyright (c) 1998 Ludd, University of Lule}, Sweden.
  * All rights reserved.
@@ -85,11 +85,14 @@
        *dz->sc_dr.dr_lpr = 0x1c18; /* XXX */
 }
 
+extern char *q_special[];
+
 int
 lkc_catch(line, ch)
        int line, ch;
 {
-       int hej;
+       int hej, i;
+       char *cp;
 
        if (line > 0)
                return 0;
@@ -98,10 +101,9 @@
                return 1;
 
        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
+               for (i = 0; i < strlen(cp); i++)
+                       wsdisplay_kbdinput(wsdisplay_cd.cd_devs[0], cp[i]);
        } else {
                wsdisplay_kbdinput(wsdisplay_cd.cd_devs[0], (keysym_t)hej);
        }



Home | Main Index | Thread Index | Old Index