2 ms·
I did a quick GitHub search and found two of them: https://github.com/kurtbuilds/no-ansi https://github.com/kurtbuilds/no-ansi Written in rust and ultimately
by joveian 5y ago
I did a quick GitHub search and found two of them:
https://github.com/kurtbuilds/no-ansi https://github.com/kurtbuilds/no-ansi
Written in rust and ultimately uses vte from alacritty to write through a virtual terminal. Can be given a file on the command line.
https://github.com/emptymonkey/dumb https://github.com/emptymonkey/dumb
Written in Lex and just strips a number of specific escape sequences (written 9 years ago so likely doesn't include a few). Only stdin to stdout.
Edit: And now I see the discussion below about nofun and the equivalent sed command that use regex. ... and reading more I see ansi2txt in colorized-logs (the one most likely to be packaged) that also effectively is a regex, although written out in C.