summaryrefslogtreecommitdiffstats
path: root/hangman
diff options
context:
space:
mode:
authorcgd <cgd@NetBSD.org>1993-11-10 15:28:25 +0000
committercgd <cgd@NetBSD.org>1993-11-10 15:28:25 +0000
commit5e81f9b5b1e4055ae2b9169d499f0cfe05f8f168 (patch)
treed99c919118b32a5743db2fe605fee64e4fc16bb7 /hangman
parent629fa8000f93ef02e38680e026feec5a0fd0b6bb (diff)
downloadbsdgames-darwin-5e81f9b5b1e4055ae2b9169d499f0cfe05f8f168.tar.gz
bsdgames-darwin-5e81f9b5b1e4055ae2b9169d499f0cfe05f8f168.tar.zst
bsdgames-darwin-5e81f9b5b1e4055ae2b9169d499f0cfe05f8f168.zip
new curses stuff
Diffstat (limited to 'hangman')
-rw-r--r--hangman/getguess.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/hangman/getguess.c b/hangman/getguess.c
index 99001c95..d8c5cc02 100644
--- a/hangman/getguess.c
+++ b/hangman/getguess.c
@@ -33,7 +33,7 @@
#ifndef lint
/*static char sccsid[] = "from: @(#)getguess.c 5.4 (Berkeley) 6/1/90";*/
-static char rcsid[] = "$Id: getguess.c,v 1.3 1993/08/10 16:50:01 mycroft Exp $";
+static char rcsid[] = "$Id: getguess.c,v 1.4 1993/11/10 15:28:25 cgd Exp $";
#endif /* not lint */
# include <termios.h>
@@ -62,7 +62,7 @@ getguess()
else
break;
}
- else if (ch == origtermio.c_cc[VEOF])
+ else if (ch == CTRL('D'))
die();
else
mvprintw(MESGY, MESGX, "Not a valid guess: '%s'",
@@ -99,12 +99,10 @@ readch()
if (++cnt > 100)
die();
}
-#ifdef VREPRINT
- else if (ch == origtermio.c_cc[VREPRINT]) {
+ else if (ch == CTRL('L')) {
wrefresh(curscr);
- mvcur(0, 0, curscr->_cury, curscr->_curx);
+ mvcur(0, 0, curscr->cury, curscr->curx);
} else
-#endif
return ch;
}
}