DOKK / manpages / debian 11 / colorized-logs / ansi2txt.1.en
ansi2txt(1) General Commands Manual ansi2txt(1)

ansi2txt - ansi to plain text converter

ansi2txt < log > outfile

ansi2txt can be used to convert text containing ANSI color codes (such as MUD logs, text processed by syntax highlighters, colorgcc, colordiff, ccze, loco, etc) into plain ASCII text. It works as a filter, reading from stdin, removing all ANSI codes and sending the output to stdout.

All ANSI codes are simply ignored, including all cursor positioning ones. Sometimes this is what you want, sometimes it isn't.

ansi2html, ttyrec2ansi, pipetty.

2002-09-02