ansi2txt(1)

ansi2txt1

Ansi to plain text converter

Usage

ansi2txt < log > outfile

Overview

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.

Caveats

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

Releases

6 releases since Debian 8 (Jessie); the text changed 3 times.

  1. 8
  2. 9
  3. 10–11
  4. 12–13

From colorized-logs 2.7-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.