- You need a raw dump of
lolcat
colorized output that includes the ANSI escape sequences for the colors. - You need this dump saved to a file.
Pipe your output through lolcat
, use the --force
flag and then redirect the output to a file.
-
Capture a raw dump of the output of a bash script piped through
lolcat
to the filecolors.txt
bash my-script.sh | lolcat --force > colors.txt
-
Capture a raw dump of the output an
echo
command piped throughlolcat
to the filecolors.txt
echo -n "foobarbaz" | lolcat --force > colors.txt
-
Dial in
lolcat
output how you want it using the--seed
option and then once you like what you see pipe it to a fileecho -n "gitpod-laravel-starter UPDATER" | lolcat --spread 0.1 --seed 5141 --freq .0048
echo -n "gitpod-laravel-starter UPDATER" | lolcat --spread 0.1 --seed 5141 --freq .0048 --force > colors.txt