summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornia <nia@NetBSD.org>2020-10-14 07:32:53 +0000
committernia <nia@NetBSD.org>2020-10-14 07:32:53 +0000
commit40bd1b0a85c94b2bf2833d1ca9ec91923b5032a5 (patch)
tree96021dac2324dea269b939bf02b2653bade29bbe
parent4b279035b0e1eee92a868ff0519a1d4678e0e818 (diff)
downloadbsdgames-darwin-40bd1b0a85c94b2bf2833d1ca9ec91923b5032a5.tar.gz
bsdgames-darwin-40bd1b0a85c94b2bf2833d1ca9ec91923b5032a5.tar.zst
bsdgames-darwin-40bd1b0a85c94b2bf2833d1ca9ec91923b5032a5.zip
worms(6): Use a reasonable default delay for non-1980s terminals.
This is still fast, but not unreasonably fast.
-rw-r--r--worms/worms.66
-rw-r--r--worms/worms.c6
2 files changed, 6 insertions, 6 deletions
diff --git a/worms/worms.6 b/worms/worms.6
index 940ec606..2ef96604 100644
--- a/worms/worms.6
+++ b/worms/worms.6
@@ -1,4 +1,4 @@
-.\" $NetBSD: worms.6,v 1.15 2012/08/12 17:30:03 wiz Exp $
+.\" $NetBSD: worms.6,v 1.16 2020/10/14 07:32:53 nia Exp $
.\"
.\" Copyright (c) 1989, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -29,7 +29,7 @@
.\"
.\" @(#)worms.6 8.1 (Berkeley) 5/31/93
.\"
-.Dd July 31, 2012
+.Dd October 14, 2020
.Dt WORMS 6
.Os
.Sh NAME
@@ -56,7 +56,7 @@ Specifies
as a delay, in milliseconds, between each update.
This is useful for fast terminals.
Reasonable values are around 20-200;
-the default is 0.
+the default is 20.
.It Fl f
Makes a
.Dq field
diff --git a/worms/worms.c b/worms/worms.c
index b69ec125..7b63d7bf 100644
--- a/worms/worms.c
+++ b/worms/worms.c
@@ -1,4 +1,4 @@
-/* $NetBSD: worms.c,v 1.22 2012/06/19 05:46:09 dholland Exp $ */
+/* $NetBSD: worms.c,v 1.23 2020/10/14 07:32:53 nia Exp $ */
/*
* Copyright (c) 1980, 1993
@@ -39,7 +39,7 @@ __COPYRIGHT("@(#) Copyright (c) 1980, 1993\
#if 0
static char sccsid[] = "@(#)worms.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: worms.c,v 1.22 2012/06/19 05:46:09 dholland Exp $");
+__RCSID("$NetBSD: worms.c,v 1.23 2020/10/14 07:32:53 nia Exp $");
#endif
#endif /* not lint */
@@ -194,7 +194,7 @@ main(int argc, char *argv[])
short **ref;
const char *field;
char *mp;
- unsigned int delay = 0;
+ unsigned int delay = 20000;
mp = NULL;
length = 16;