k9s icon indicating copy to clipboard operation
k9s copied to clipboard

[DRAFT] feat(log): add option to strip ansi colors

Open mikesmithgh opened this issue 9 months ago • 0 comments

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: ansi-logs

Example no ANSI: strip-ansi-logs

mikesmithgh avatar Sep 22 '23 13:09 mikesmithgh