k9s
k9s copied to clipboard
[DRAFT] feat(log): add option to strip ansi colors
This is a draft PR to get feedback on the approach.
I referenced some implementations of stripping ANSI color sequences and added it to the logger.
If this looks like a good approach, I was thinking to add a config option under logger
as a boolean
stipAnsi
. Maybe a toggle to the log indicator section as well.
Please let me know what you think.
This would resolve #1297
Example with ANSI:
Example no ANSI: