Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/games/snake/snake fix handling of '-t' flag, and pause for a...
details: https://anonhg.NetBSD.org/src/rev/2a43124f0eba
branches: trunk
changeset: 477650:2a43124f0eba
user: cgd <cgd%NetBSD.org@localhost>
date: Tue Oct 26 06:38:31 1999 +0000
description:
fix handling of '-t' flag, and pause for a little bit after drawing happysnake
diffstat:
games/snake/snake/snake.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diffs (35 lines):
diff -r 2e6193399db6 -r 2a43124f0eba games/snake/snake/snake.c
--- a/games/snake/snake/snake.c Tue Oct 26 06:36:53 1999 +0000
+++ b/games/snake/snake/snake.c Tue Oct 26 06:38:31 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: snake.c,v 1.14 1999/09/14 18:07:21 jsm Exp $ */
+/* $NetBSD: snake.c,v 1.15 1999/10/26 06:38:31 cgd Exp $ */
/*
* Copyright (c) 1980, 1993
@@ -43,7 +43,7 @@
#if 0
static char sccsid[] = "@(#)snake.c 8.2 (Berkeley) 1/7/94";
#else
-__RCSID("$NetBSD: snake.c,v 1.14 1999/09/14 18:07:21 jsm Exp $");
+__RCSID("$NetBSD: snake.c,v 1.15 1999/10/26 06:38:31 cgd Exp $");
#endif
#endif /* not lint */
@@ -182,6 +182,7 @@
break;
case 't':
fast = 0;
+ break;
case '?':
default:
fputs("usage: snake [-d seed] [-w width] [-l length] [-t]\n", stderr);
@@ -821,6 +822,8 @@
mvaddstr(ps->line, ps->col, " ");
mvaddstr(ps->line + 1, ps->col, "o.o");
mvaddstr(ps->line + 2, ps->col, "\\_/");
+ refresh();
+ delay(6);
}
void
Home |
Main Index |
Thread Index |
Old Index