diff options
| author | Andrey A. Chernov <ache@FreeBSD.org> | 1994-08-28 21:47:13 +0000 |
|---|---|---|
| committer | Andrey A. Chernov <ache@FreeBSD.org> | 1994-08-28 21:47:13 +0000 |
| commit | f20105311324cd9998979d6302c79f7b6dc1879f (patch) | |
| tree | 15d0f287c735370d7c344c86a8addbbf04e4b2a5 /lib/libcurses/getch.c | |
| parent | c69d09e4359180c046b109e2084de520486fdaf8 (diff) | |
Notes
Diffstat (limited to 'lib/libcurses/getch.c')
| -rw-r--r-- | lib/libcurses/getch.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/lib/libcurses/getch.c b/lib/libcurses/getch.c index 6108229708dd..31dd2b693b45 100644 --- a/lib/libcurses/getch.c +++ b/lib/libcurses/getch.c @@ -61,13 +61,15 @@ wgetch(win) weset = 0; inp = getchar(); + if (inp != EOF) { #ifdef DEBUG - __CTRACE("wgetch got '%s'\n", unctrl(inp)); + __CTRACE("wgetch got '%s'\n", unctrl(inp)); #endif - if (__echoit) { - mvwaddch(curscr, - win->cury + win->begy, win->curx + win->begx, inp); - waddch(win, inp); + if (__echoit) { + mvwaddch(curscr, + win->cury + win->begy, win->curx + win->begx, inp); + waddch(win, inp); + } } if (weset) nocbreak(); |
