- 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