From ae1ae68681f384c37a9022f9f47cdcaf7e914d45 Mon Sep 17 00:00:00 2001 From: mycroft Date: Tue, 10 Aug 1993 03:44:45 +0000 Subject: Changes for new Curses. --- canfield/canfield/canfield.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'canfield/canfield') 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 #include #include +#include #include #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--; -- cgit v1.2.3-56-ge451