Lolcat is a command-line tool that colorizes terminal output by printing text in rainbow gradients. Inspired by the original Ruby “lolcat” project, it takes input from stdin or files and outputs the same text with colorful ANSI escape codes. It’s frequently used to add a playful touch to logs, help messages, or shell scripts, making otherwise mundane terminal output more fun. Options allow customizing color spread, speed, and randomization to create different rainbow effects. Lolcat is often piped into commands like cat, figlet, or fortune to create whimsical and eye-catching console art. Despite being lighthearted in purpose, it demonstrates the use of ANSI codes and stream manipulation in a clean, portable way.

Features

  • Rainbow / gradient colorization of text output to terminal when displaying files or piped input
  • Optional animation of the color gradients as output is displayed
  • Supports reading from files or standard input (pipe) like cat
  • Configurable parameters (speed, seed, color range, etc.) for adjusting appearance
  • Availability via common package managers (gem, Homebrew, Snap etc.) for ease of installation
  • Works even when piping output (preserving or not preserving ANSI color codes) under TTY detection etc.

Project Samples

Project Activity

See All Activity >

Categories

Terminals

License

BSD License

Follow Lolcat

Lolcat Web Site

Other Useful Business Software
Full-stack observability with actually useful AI | Grafana Cloud Icon
Full-stack observability with actually useful AI | Grafana Cloud

Our generous forever free tier includes the full platform, including the AI Assistant, for 3 users with 10k metrics, 50GB logs, and 50GB traces.

Built on open standards like Prometheus and OpenTelemetry, Grafana Cloud includes Kubernetes Monitoring, Application Observability, Incident Response, plus the AI-powered Grafana Assistant. Get started with our generous free tier today.
Create free account
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Lolcat!

Additional Project Details

Operating Systems

Linux, Mac

Programming Language

Ruby

Related Categories

Ruby Terminals

Registered

2025-09-17