Source-Changes-HG archive

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

[src/curses-v3]: src/lib/libcurses Handle characters with top bit set.



details:   https://anonhg.NetBSD.org/src/rev/bb1cf7227194
branches:  curses-v3
changeset: 479978:bb1cf7227194
user:      jdc <jdc%NetBSD.org@localhost>
date:      Mon Mar 27 13:45:18 2000 +0000

description:
Handle characters with top bit set.

diffstat:

 lib/libcurses/getch.c |  12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diffs (33 lines):

diff -r 7d0ed498b7e8 -r bb1cf7227194 lib/libcurses/getch.c
--- a/lib/libcurses/getch.c     Thu Mar 16 21:47:16 2000 +0000
+++ b/lib/libcurses/getch.c     Mon Mar 27 13:45:18 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: getch.c,v 1.15.2.1 2000/01/09 20:43:19 jdc Exp $       */
+/*     $NetBSD: getch.c,v 1.15.2.2 2000/03/27 13:45:18 jdc Exp $       */
 
 /*
  * Copyright (c) 1981, 1993, 1994
@@ -38,7 +38,7 @@
 #if 0
 static char sccsid[] = "@(#)getch.c    8.2 (Berkeley) 5/4/94";
 #else
-__RCSID("$NetBSD: getch.c,v 1.15.2.1 2000/01/09 20:43:19 jdc Exp $");
+__RCSID("$NetBSD: getch.c,v 1.15.2.2 2000/03/27 13:45:18 jdc Exp $");
 #endif
 #endif                                 /* not lint */
 
@@ -319,10 +319,10 @@
 inkey(to, delay)
        int     to, delay;
 {
-       wchar_t  k;
-       ssize_t  nchar;
-       char     c;
-       keymap_t *current = base_keymap;
+       wchar_t        k;
+       ssize_t        nchar;
+       unsigned char  c;
+       keymap_t       *current = base_keymap;
 
        for (;;) {              /* loop until we get a complete key sequence */
 reread:



Home | Main Index | Thread Index | Old Index