X-Git-Url: https://git.subgeniuskitty.com/unix-history/.git/blobdiff_plain/8f536208f984757f0afc903796374076370cd04d..ebfe781349c82c510e0bd51d6ebe5c7e9fad8d65:/usr/src/lib/libcurses/getch.c diff --git a/usr/src/lib/libcurses/getch.c b/usr/src/lib/libcurses/getch.c index a0e973fe30..20ad43d43e 100644 --- a/usr/src/lib/libcurses/getch.c +++ b/usr/src/lib/libcurses/getch.c @@ -5,7 +5,7 @@ */ #ifndef lint -static char sccsid[] = "@(#)getch.c 5.2 (Berkeley) %G%"; +static char sccsid[] = "@(#)getch.c 5.3 (Berkeley) %G%"; #endif not lint # include "curses.ext" @@ -27,7 +27,7 @@ reg WINDOW *win; { fprintf(outf, "WGETCH: _echoit = %c, _rawmode = %c\n", _echoit ? 'T' : 'F', _rawmode ? 'T' : 'F'); # endif if (_echoit && !_rawmode) { - raw(); + cbreak(); weset++; } inp = getchar(); @@ -40,6 +40,6 @@ reg WINDOW *win; { waddch(win, inp); } if (weset) - noraw(); + nocbreak(); return inp; }