]> git.cameronkatri.com Git - bsdgames-darwin.git/blobdiff - robots/move.c
note that huntd lives in /usr/games.
[bsdgames-darwin.git] / robots / move.c
index 793644407442f17fef9a213b5b5574ea8240c701..c146eb3dc34a165a369c84cebf8dc731c0a70aa3 100644 (file)
@@ -1,6 +1,8 @@
+/*     $NetBSD: move.c,v 1.5 1997/05/23 23:40:19 jtc Exp $     */
+
 /*
- * Copyright (c) 1980 Regents of the University of California.
- * All rights reserved.
+ * Copyright (c) 1980, 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[] = "@(#)move.c     5.4 (Berkeley) 6/1/90";
+#if 0
+static char sccsid[] = "@(#)move.c     8.1 (Berkeley) 5/31/93";
+#else
+static char rcsid[] = "$NetBSD: move.c,v 1.5 1997/05/23 23:40:19 jtc Exp $";
+#endif
 #endif /* not lint */
 
-# include      "robots.h"
-# include      <ctype.h>
+#include <sys/ttydefaults.h>
+#include <ctype.h>
+#include "robots.h"
 
 # define       ESC     '\033'
 
@@ -156,7 +163,6 @@ over:
                  case 'W':
                        Waiting = TRUE;
                        leaveok(stdscr, TRUE);
-                       flushok(stdscr, FALSE);
                        goto ret;
                  case 't':
                  case 'T':
@@ -169,13 +175,13 @@ teleport:
                        refresh();
                        flush_in();
                        goto ret;
-                 case CTRL(L):
+                 case CTRL('L'):
                        wrefresh(curscr);
                        break;
                  case EOF:
                        break;
                  default:
-                       putchar(CTRL(G));
+                       putchar(CTRL('G'));
                        reset_count();
                        fflush(stdout);
                        break;
@@ -240,7 +246,7 @@ int dy, dx;
                        refresh();
                }
                else {
-                       putchar(CTRL(G));
+                       putchar(CTRL('G'));
                        reset_count();
                }
                return FALSE;