Skip to content

lolcat

Rainbow colorize text.

Synopsis

tofu lolcat [text] [flags]

Description

Output text in rainbow colors using ANSI true color. Makes everything better.

Flags

Flag Short Description Default
--freq -f Rainbow frequency (color change rate) 0.1
--spread -p Rainbow spread (how much colors spread across lines) 3.0
--seed -s Rainbow seed (starting point in the rainbow) 0

Examples

Colorize text:

tofu lolcat "Hello, World!"

Colorize from stdin:

echo "Rainbow text" | tofu lolcat

Colorize a file:

cat README.md | tofu lolcat

Faster color cycling:

tofu lolcat -f 0.3 "Speedy rainbow"

Different starting color:

tofu lolcat -s 10 "Different start"

Wider color spread:

tofu lolcat -p 5.0 "Spread out colors"

Fun Uses

Colorize cowsay:

tofu cowsay "Hello!" | tofu lolcat

Rainbow build output:

make 2>&1 | tofu lolcat

Rainbow fortune:

tofu fortune | tofu lolcat

Notes

  • Requires a terminal that supports ANSI true color (24-bit color)
  • Spaces and tabs are not colorized