WORMS(6)

WORMS(6) | Games Manual | WORMS(6)

# NAME

`worms` — animate worms on a display terminal

# SYNOPSIS

`worms` | [`-CfHrt`] [`-d` delay] [`-l` length] [`-n` number] [`-S` seed]

# DESCRIPTION

`worms` is a UNIX version of the DEC-2136 program “worms”.

The options are as follows:

`-C`
  Use colours, if available, to make the worms easier to distinguish.

`-d` delay
  Specifies a delay, in milliseconds, between each update. This is useful for fast terminals. Reasonable values are around 20-200; the default is 20.

`-f`
  Makes a “field” for the worm(s) to eat.

`-H`
  Display the head of the worm differently than its body.

`-l` length
`-l` min−max
  Specifies the length of each worm; the default is 16, the minimum is 2. In the second form, worm lengths are randomly chosen between min (which must be at least 2) and max. The max worm length will be reduced if required by the screen size and the number of worms selected. This option overrides any earlier `-r`.

`-n` number
  Specifies the number of worms; the default is 3. There must be at least one.

`-r`
  Use random lengths for the worms, within a range of sizes chosen to suit the screen size. Note this option overrides any earlier `-l`.

`-S` seed
  Provide an integer seed for the random number generator. Specifying zero (0, the default) causes a random seed to be used.

`-t`
  Makes each worm leave a trail behind it.

The maximum length, and number, of worms depends upon the screen size, though the length can never exceed 1024. If the screen is particularly small, even the defaults for those may be too large. Screens with less than 3 rows or columns cannot be handled, nor can ones with insufficient total space.

April 26, 2023 | NetBSD 11.0