diff options
author | Paul Janzen <pjanzen@cvs.openbsd.org> | 2000-07-23 22:23:43 +0000 |
---|---|---|
committer | Paul Janzen <pjanzen@cvs.openbsd.org> | 2000-07-23 22:23:43 +0000 |
commit | 722786328ebb9bc3a9908e1199f5820495967c9e (patch) | |
tree | 8b980bfd8764be70c0a9ac4a874808ee11f9993f /games/robots | |
parent | c0c45ffbae560ab416f07c82adf9390466da1bd2 (diff) |
Handle EOF on stdin.
Diffstat (limited to 'games/robots')
-rw-r--r-- | games/robots/move.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/games/robots/move.c b/games/robots/move.c index 664b49902d0..3ac87884d04 100644 --- a/games/robots/move.c +++ b/games/robots/move.c @@ -1,4 +1,4 @@ -/* $OpenBSD: move.c,v 1.4 1999/12/18 11:18:12 pjanzen Exp $ */ +/* $OpenBSD: move.c,v 1.5 2000/07/23 22:23:42 pjanzen Exp $ */ /* $NetBSD: move.c,v 1.4 1995/04/22 10:08:58 cgd Exp $ */ /* @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)move.c 8.1 (Berkeley) 5/31/93"; #else -static char rcsid[] = "$OpenBSD: move.c,v 1.4 1999/12/18 11:18:12 pjanzen Exp $"; +static char rcsid[] = "$OpenBSD: move.c,v 1.5 2000/07/23 22:23:42 pjanzen Exp $"; #endif #endif /* not lint */ @@ -203,6 +203,7 @@ teleport: wrefresh(curscr); break; case EOF: + quit(0); break; default: beep(); |