summaryrefslogtreecommitdiffstats
path: root/canfield/canfield/canfield.c
diff options
context:
space:
mode:
Diffstat (limited to 'canfield/canfield/canfield.c')
-rw-r--r--canfield/canfield/canfield.c9
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--;