From 15f2f45599ebe7e34a9d0f3f08fdacf2328a39f6 Mon Sep 17 00:00:00 2001 From: hubertf Date: Fri, 30 Jul 1999 02:23:27 +0000 Subject: This patch converts worms(6) to use curses, thereby simplifying the code and improving its portability. It also adds a delay option from OpenBSD, to allow reasonable speed display on fast terminals, adds use of const, and fixes signal handling and use of errx() where appropriate. Patch supplied in PR 6661 by Joseph Myers . --- worms/worms.6 | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) (limited to 'worms/worms.6') diff --git a/worms/worms.6 b/worms/worms.6 index d161b26f..4e660b48 100644 --- a/worms/worms.6 +++ b/worms/worms.6 @@ -1,4 +1,4 @@ -.\" $NetBSD: worms.6,v 1.9 1999/03/10 09:29:08 erh Exp $ +.\" $NetBSD: worms.6,v 1.10 1999/07/30 02:23:27 hubertf Exp $ .\" .\" Copyright (c) 1989, 1993 .\" The Regents of the University of California. All rights reserved. @@ -41,24 +41,29 @@ .Sh SYNOPSIS .Nm .Op Fl ft +.Op Fl d Ar delay .Op Fl l Ar length .Op Fl n Ar number .Sh DESCRIPTION A .Ux -version of the DEC-2136 program ``worms''. +version of the DEC-2136 program +.Dq worms . .Pp The options are as follows: .Bl -tag -width indent .It Fl f -Makes a ``field'' for the worm(s) to eat. +Makes a +.Dq field +for the worm(s) to eat. .It Fl t Makes each worm leave a trail behind it. +.It Fl d +Specifies a delay, in milliseconds, between each update. This is +useful for fast terminals. Reasonable values are around 20-200. The +default is 0. .It Fl l Specifies a length for each worm; the default is 16. .It Fl n Specifies the number of worms; the default is 3. .El -.Sh BUGS -The lower-right-hand character position will not be updated properly -on a terminal that wraps at the right margin. -- cgit v1.2.3