Source-Changes-HG archive

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

[src/trunk]: src/lib/libcurses Don't echo key symbols.



details:   https://anonhg.NetBSD.org/src/rev/0e0d3900da56
branches:  trunk
changeset: 758470:0e0d3900da56
user:      blymn <blymn%NetBSD.org@localhost>
date:      Fri Nov 05 11:38:54 2010 +0000

description:
Don't echo key symbols.

diffstat:

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

diffs (27 lines):

diff -r ad0e954ea937 -r 0e0d3900da56 lib/libcurses/getch.c
--- a/lib/libcurses/getch.c     Fri Nov 05 11:32:42 2010 +0000
+++ b/lib/libcurses/getch.c     Fri Nov 05 11:38:54 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: getch.c,v 1.55 2010/02/03 15:34:40 roy Exp $   */
+/*     $NetBSD: getch.c,v 1.56 2010/11/05 11:38:54 blymn Exp $ */
 
 /*
  * Copyright (c) 1981, 1993, 1994
@@ -34,7 +34,7 @@
 #if 0
 static char sccsid[] = "@(#)getch.c    8.2 (Berkeley) 5/4/94";
 #else
-__RCSID("$NetBSD: getch.c,v 1.55 2010/02/03 15:34:40 roy Exp $");
+__RCSID("$NetBSD: getch.c,v 1.56 2010/11/05 11:38:54 blymn Exp $");
 #endif
 #endif                                 /* not lint */
 
@@ -906,7 +906,7 @@
 
        __restore_termios();
 
-       if (__echoit)
+       if ((__echoit) && (inp < KEY_MIN))
                waddch(win, (chtype) inp);
 
        if (weset)



Home | Main Index | Thread Index | Old Index