[FR]: Color: Always
jtrv opened this issue · 4 comments
It would be nice to have a setting/flag to always output ansi escape codes, so if you decide to write the output or pipe it etc, you can maintain colored output.
I currently have a "greeting" script that prints a few different things in my editor when I turn on my machine, including the output of this utility, however the output loses some readability when the ansi-colors are lost.
Hey @jtrv,
Comprehensible use case. Gonna look into it when a moment opens up. Also, if you'd like to contribute, feel free 👍
@jtrv would it be possible to share the piece of your script and add some environment information? This would bring me closer to have something reproducible and concrete to address.
Best regards
steps to reproduce:
wthrr > test.txt
cat test.txt
cat
will render ansi escapes if present.
You can also open test.txt
in an editor to see that ansi escapes are not produced.
Environment:
Kernel: 6.11.1-zen1-1-zen
Distro: Arch Linux
Shell: fish
Terminal: alacritty
I don't suspect this is an environmental issue.