can't use copyright string in libc, use std. LIBC_SCCS
[unix-history] / usr / src / lib / libcurses / getch.c
index a0e973f..20ad43d 100644 (file)
@@ -5,7 +5,7 @@
  */
 
 #ifndef lint
  */
 
 #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"
 #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) {
        fprintf(outf, "WGETCH: _echoit = %c, _rawmode = %c\n", _echoit ? 'T' : 'F', _rawmode ? 'T' : 'F');
 # endif
        if (_echoit && !_rawmode) {
-               raw();
+               cbreak();
                weset++;
        }
        inp = getchar();
                weset++;
        }
        inp = getchar();
@@ -40,6 +40,6 @@ reg WINDOW    *win; {
                waddch(win, inp);
        }
        if (weset)
                waddch(win, inp);
        }
        if (weset)
-               noraw();
+               nocbreak();
        return inp;
 }
        return inp;
 }