summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornia <nia@NetBSD.org>2020-10-14 18:32:04 +0000
committernia <nia@NetBSD.org>2020-10-14 18:32:04 +0000
commita6564c34252ee2aa073c9643783c2870a425ce53 (patch)
treec41e717ba95382ba3aafddbe06f8fc1fb9ec9b4c
parent40bd1b0a85c94b2bf2833d1ca9ec91923b5032a5 (diff)
downloadbsdgames-darwin-a6564c34252ee2aa073c9643783c2870a425ce53.tar.gz
bsdgames-darwin-a6564c34252ee2aa073c9643783c2870a425ce53.tar.zst
bsdgames-darwin-a6564c34252ee2aa073c9643783c2870a425ce53.zip
rain(6): Make the default delay useful for modern terminals
-rw-r--r--rain/rain.617
-rw-r--r--rain/rain.c6
2 files changed, 12 insertions, 11 deletions
diff --git a/rain/rain.6 b/rain/rain.6
index cf07f4de..441a29be 100644
--- a/rain/rain.6
+++ b/rain/rain.6
@@ -1,4 +1,4 @@
-.\" $NetBSD: rain.6,v 1.12 2005/09/15 02:09:41 wiz Exp $
+.\" $NetBSD: rain.6,v 1.13 2020/10/14 18:32:04 nia Exp $
.\"
.\" Copyright (c) 1989, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -29,7 +29,7 @@
.\"
.\" @(#)rain.6 8.1 (Berkeley) 5/31/93
.\"
-.Dd May 31, 1993
+.Dd October 14, 2020
.Dt RAIN 6
.Os
.Sh NAME
@@ -44,11 +44,12 @@ The output of
is modeled after the
.Tn VAX/VMS
program of the same name.
-To obtain the proper effect, either the terminal must be set for 9600
-baud or the
-.Fl d
-option must be used to specify a delay, in milliseconds, between each
-update.
-A reasonable delay is 120; the default is 0.
+.Bl -tag -width Ds
+.It Fl d
+Delay between updates (in milliseconds).
+If the terminal is faster than 9600 baud, must be set to non-zero to
+obtain a proper rain effect.
+The default is 120.
+.El
.Sh AUTHORS
.An Eric P. Scott
diff --git a/rain/rain.c b/rain/rain.c
index bd60ec32..ae75966a 100644
--- a/rain/rain.c
+++ b/rain/rain.c
@@ -1,4 +1,4 @@
-/* $NetBSD: rain.c,v 1.21 2008/08/08 16:10:47 drochner Exp $ */
+/* $NetBSD: rain.c,v 1.22 2020/10/14 18:32:04 nia Exp $ */
/*
* Copyright (c) 1980, 1993
@@ -39,7 +39,7 @@ __COPYRIGHT("@(#) Copyright (c) 1980, 1993\
#if 0
static char sccsid[] = "@(#)rain.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: rain.c,v 1.21 2008/08/08 16:10:47 drochner Exp $");
+__RCSID("$NetBSD: rain.c,v 1.22 2020/10/14 18:32:04 nia Exp $");
#endif
#endif /* not lint */
@@ -69,7 +69,7 @@ main(int argc, char **argv)
{
int x, y, j;
long cols, lines;
- unsigned int delay = 0;
+ unsigned int delay = 120000;
unsigned long val = 0;
int ch;
char *ep;