diff options
author | mycroft <mycroft@NetBSD.org> | 1993-08-10 03:44:45 +0000 |
---|---|---|
committer | mycroft <mycroft@NetBSD.org> | 1993-08-10 03:44:45 +0000 |
commit | ae1ae68681f384c37a9022f9f47cdcaf7e914d45 (patch) | |
tree | f1073e2d3f8dfc789cbaac539ea7e9c7512c7e04 /canfield | |
parent | c1a620285569e93df7b386afeadbc91b3eb03bc7 (diff) | |
download | bsdgames-darwin-ae1ae68681f384c37a9022f9f47cdcaf7e914d45.tar.gz bsdgames-darwin-ae1ae68681f384c37a9022f9f47cdcaf7e914d45.tar.zst bsdgames-darwin-ae1ae68681f384c37a9022f9f47cdcaf7e914d45.zip |
Changes for new Curses.
Diffstat (limited to 'canfield')
-rw-r--r-- | canfield/canfield/canfield.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/canfield/canfield/canfield.c b/canfield/canfield/canfield.c index 04d47f8c..c0344132 100644 --- a/canfield/canfield/canfield.c +++ b/canfield/canfield/canfield.c @@ -39,7 +39,7 @@ char copyright[] = #ifndef lint /*static char sccsid[] = "from: @(#)canfield.c 5.11 (Berkeley) 2/28/91";*/ -static char rcsid[] = "$Id: canfield.c,v 1.2 1993/08/01 18:55:33 mycroft Exp $"; +static char rcsid[] = "$Id: canfield.c,v 1.3 1993/08/10 03:44:45 mycroft Exp $"; #endif /* not lint */ /* @@ -56,6 +56,7 @@ static char rcsid[] = "$Id: canfield.c,v 1.2 1993/08/01 18:55:33 mycroft Exp $"; #include <sys/types.h> #include <sys/signal.h> #include <curses.h> +#include <termios.h> #include <ctype.h> #include "pathnames.h" @@ -1280,14 +1281,14 @@ getcmd(row, col, cp) if (ch == '\f') { wrefresh(curscr); refresh(); - } else if (i >= 2 && ch != _tty.sg_erase && ch != _tty.sg_kill) { + } else if (i >= 2 && ch != erasechar() && ch != killchar()) { if (ch != '\n' && ch != '\r' && ch != ' ') write(1, "\007", 1); - } else if (ch == _tty.sg_erase && i > 0) { + } else if (ch == erasechar() && i > 0) { printw("\b \b"); refresh(); i--; - } else if (ch == _tty.sg_kill && i > 0) { + } else if (ch == killchar() && i > 0) { while (i > 0) { printw("\b \b"); i--; |