summaryrefslogtreecommitdiffstats
path: root/mille/misc.c
diff options
context:
space:
mode:
authorjtc <jtc@NetBSD.org>1994-05-12 17:39:26 +0000
committerjtc <jtc@NetBSD.org>1994-05-12 17:39:26 +0000
commit0b09ff9c6eb42c5557ff22b470c03b4bca1bda5a (patch)
treea0e3934df36f11526587011391e26e18bfb6b758 /mille/misc.c
parent7c6ccbcf4ec8dcb8f5c5de1a80604eebfefc8d9f (diff)
downloadbsdgames-darwin-0b09ff9c6eb42c5557ff22b470c03b4bca1bda5a.tar.gz
bsdgames-darwin-0b09ff9c6eb42c5557ff22b470c03b4bca1bda5a.tar.zst
bsdgames-darwin-0b09ff9c6eb42c5557ff22b470c03b4bca1bda5a.zip
sync with 44lite, seems to fix bug #224
Diffstat (limited to 'mille/misc.c')
-rw-r--r--mille/misc.c30
1 files changed, 11 insertions, 19 deletions
diff --git a/mille/misc.c b/mille/misc.c
index a43b1327..43ec1bbc 100644
--- a/mille/misc.c
+++ b/mille/misc.c
@@ -1,6 +1,6 @@
/*
- * Copyright (c) 1983 Regents of the University of California.
- * All rights reserved.
+ * Copyright (c) 1983, 1993
+ * The Regents of the University of California. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -32,16 +32,18 @@
*/
#ifndef lint
-/*static char sccsid[] = "from: @(#)misc.c 5.6 (Berkeley) 6/1/90";*/
-static char rcsid[] = "$Id: misc.c,v 1.2 1993/08/01 18:53:59 mycroft Exp $";
+/*static char sccsid[] = "from: @(#)misc.c 8.1 (Berkeley) 5/31/93";*/
+static char rcsid[] = "$Id: misc.c,v 1.3 1994/05/12 17:39:35 jtc Exp $";
#endif /* not lint */
+#include <sys/file.h>
+#include <termios.h>
+
#include "mille.h"
#ifndef unctrl
#include "unctrl.h"
#endif
-# include <sys/file.h>
# ifdef attron
# include <term.h>
@@ -197,6 +199,9 @@ register int promptno; {
refresh();
Saved = save();
continue;
+ case CTRL('L'):
+ wrefresh(curscr);
+ break;
default:
addstr(unctrl(c));
refresh();
@@ -213,8 +218,6 @@ register int promptno; {
*/
check_more() {
- flush_input();
-
On_exit = TRUE;
if (Player[PLAYER].total >= 5000 || Player[COMP].total >= 5000)
if (getyn(ANOTHERGAMEPROMPT))
@@ -236,7 +239,7 @@ check_more() {
if (!Saved && getyn(SAVEGAMEPROMPT))
if (!save())
return;
- die();
+ die(0);
}
readch()
@@ -249,14 +252,3 @@ readch()
exit(1);
return c;
}
-
-flush_input()
-{
-# ifdef TIOCFLUSH
- static int ioctl_args = O_RDONLY;
-
- (void) ioctl(fileno(stdin), TIOCFLUSH, &ioctl_args);
-# else
- fflush(stdin);
-# endif
-}