Skip to content

chrisBirmingham/lolcat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

92 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lolcat

An imperfect implementation of the lolcat program written in C. The original version was written in V and can be found in the original-main branch.

Requirements

  • (gnu) make
  • A version of gcc or clang that supports c11
  • A (*)nix based operating system.

Installation

To install lolcat you can run the following commands

git clone https://github.com/chrisBirmingham/lolcat
cd lolcat
make
[sudo] make install

By default, the makefile installs to /usr/local/bin. This can be overridden with the PREFIX variable

make install PREFIX=~/.local

Limitations

  • The truecolor and rgb256 colour palettes are the only supported colour palettes. Truecolor is the default colour patlette if it cannot detect your supported colour pallet via COLORTERM or TERM
  • If you have NO_COLOR set or TERM is set to dumb, lolcat will exit with EXIT_FAILURE instead of printing plain text. Use cat if you don't want coloured text.

Inspiration/Attributions

  • Jim Bumgardner for his excellent tutorial on making annoying rainbows here
  • The Ruby Paint Gem for their truecolor to rgb256 conversion logic
  • And of cource lolcat

About

An imperfect implementation of lolcat written in C

Resources

License

Stars

Watchers

Forks

Packages

No packages published