From ad5cd40187b784a973ea41e3d848a7cb9258f229 Mon Sep 17 00:00:00 2001 From: hubertf Date: Fri, 30 Jul 1999 02:14:56 +0000 Subject: This patch converts rain(6) to use curses, thereby significantly simplifying the code and improving its portability. It also adds a delay option from OpenBSD to make the display go at a useful speed on fast terminals, and fixes signal handling to make it reliable. Patch supplied by Joseph Myers in PR 6659. --- rain/rain.6 | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) (limited to 'rain/rain.6') diff --git a/rain/rain.6 b/rain/rain.6 index 5e11502d..e719e37a 100644 --- a/rain/rain.6 +++ b/rain/rain.6 @@ -1,4 +1,4 @@ -.\" $NetBSD: rain.6,v 1.6 1997/10/12 01:12:44 lukem Exp $ +.\" $NetBSD: rain.6,v 1.7 1999/07/30 02:14:56 hubertf Exp $ .\" .\" Copyright (c) 1989, 1993 .\" The Regents of the University of California. All rights reserved. @@ -41,21 +41,17 @@ .Nd animated raindrops display .Sh SYNOPSIS .Nm +.Op Fl d Ar delay .Sh DESCRIPTION The output of .Nm is modeled after the .Tn VAX/VMS program of the same name. -The terminal has to be set for 9600 baud to obtain the proper effect. -.Pp -As with all programs that use -.Tn termcap , -the -.Ev TERM -environment variable must be set (and exported) to the type of the -terminal being used. -.Sh FILES -.Pa /usr/share/misc/termcap +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. .Sh AUTHOR Eric P. Scott -- cgit v1.2.3-56-ge451