summaryrefslogtreecommitdiffstats
path: root/worms/worms.6
diff options
context:
space:
mode:
authorhubertf <hubertf@NetBSD.org>1999-07-30 02:23:27 +0000
committerhubertf <hubertf@NetBSD.org>1999-07-30 02:23:27 +0000
commit15f2f45599ebe7e34a9d0f3f08fdacf2328a39f6 (patch)
tree9338141a103a36eb0dd78c2e504c1ca53c220165 /worms/worms.6
parentad5cd40187b784a973ea41e3d848a7cb9258f229 (diff)
downloadbsdgames-darwin-15f2f45599ebe7e34a9d0f3f08fdacf2328a39f6.tar.gz
bsdgames-darwin-15f2f45599ebe7e34a9d0f3f08fdacf2328a39f6.tar.zst
bsdgames-darwin-15f2f45599ebe7e34a9d0f3f08fdacf2328a39f6.zip
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 <jsm28@cam.ac.uk>.
Diffstat (limited to 'worms/worms.6')
-rw-r--r--worms/worms.617
1 files changed, 11 insertions, 6 deletions
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.