+/* $NetBSD: misc.c,v 1.4 1995/03/24 05:01:54 cgd Exp $ */
+
/*
- * 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
*/
#ifndef lint
-static char sccsid[] = "@(#)misc.c 5.6 (Berkeley) 6/1/90";
+#if 0
+static char sccsid[] = "@(#)misc.c 8.1 (Berkeley) 5/31/93";
+#else
+static char rcsid[] = "$NetBSD: misc.c,v 1.4 1995/03/24 05:01:54 cgd Exp $";
+#endif
#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>
refresh();
Saved = save();
continue;
+ case CTRL('L'):
+ wrefresh(curscr);
+ break;
default:
addstr(unctrl(c));
refresh();
*/
check_more() {
- flush_input();
-
On_exit = TRUE;
if (Player[PLAYER].total >= 5000 || Player[COMP].total >= 5000)
if (getyn(ANOTHERGAMEPROMPT))
if (!Saved && getyn(SAVEGAMEPROMPT))
if (!save())
return;
- die();
+ die(0);
}
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
-}