diff options
| author | blymn <blymn@NetBSD.org> | 2000-04-23 14:14:49 +0000 |
|---|---|---|
| committer | blymn <blymn@NetBSD.org> | 2000-04-23 14:14:49 +0000 |
| commit | cf5ffc46f20063c856be2e2ec2f8db705ed61d5c (patch) | |
| tree | 62f406041bcaf6186e0bfcf7d2fe2f63fe443522 /lib/libcurses/getch.c | |
| parent | 6d972981ff23aff640534634bef56abc91d1a6c6 (diff) | |
* Fixed bug in copywin which was copying more than it should.
* Changed call to wrefresh in wgetch to be before input read.
* Changed default old cursor mode to be high vis in curs_set
* Added documentation for various new functions to fns.doc.
Diffstat (limited to 'lib/libcurses/getch.c')
| -rw-r--r-- | lib/libcurses/getch.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/libcurses/getch.c b/lib/libcurses/getch.c index 53776cdce82..d0e8ef5d229 100644 --- a/lib/libcurses/getch.c +++ b/lib/libcurses/getch.c @@ -1,4 +1,4 @@ -/* $NetBSD: getch.c,v 1.23 2000/04/22 21:14:19 thorpej Exp $ */ +/* $NetBSD: getch.c,v 1.24 2000/04/23 14:14:49 blymn 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.23 2000/04/22 21:14:19 thorpej Exp $"); +__RCSID("$NetBSD: getch.c,v 1.24 2000/04/23 14:14:49 blymn Exp $"); #endif #endif /* not lint */ @@ -568,6 +568,8 @@ wgetch(WINDOW *win) && win->curx == win->maxx - 1 && win->cury == win->maxy - 1 && __echoit) return (ERR); + + wrefresh(win); #ifdef DEBUG __CTRACE("wgetch: __echoit = %d, __rawmode = %d, flags = %0.2o\n", __echoit, __rawmode, win->flags); @@ -654,7 +656,6 @@ wgetch(WINDOW *win) if (weset) nocbreak(); - wrefresh(win); return ((inp < 0) || (inp == ERR) ? ERR : inp); } |
