#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 */
/*
#include <sys/types.h>
#include <sys/signal.h>
#include <curses.h>
+#include <termios.h>
#include <ctype.h>
#include "pathnames.h"
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--;