
art-width Set ANSI art width (default 80) art-tundra Parse Tundra ANSI art (HTML output, no stdin) art-bin Parse BIN/XBIN ANSI art (HTML output, no stdin) art-cp437 Parse codepage 437 ANSI art (HTML and RTF output) derived-styles Output dynamic stylesheets (HTML/SVG) wrap-no-numbers Omit line numbers of wrapped lines (assumes -l) no-version-info Omit version info comment p, -plain Ignore ANSI formatting information

s, -font-size= Set HTML/RTF/SVG font size r, -style-ref= Set HTML/TeX/LaTeX/SVG stylesheet path m, -map= Read color mapping file (see README) l, -line-numbers Print line numbers in output file k, -ignore-clear(=0) Do not adhere to clear (ESC K) commands (default: true) f, -fragment Omit HTML header and footer e, -encoding= Set HTML/RTF encoding (must match input file encoding) d, -doc-title Set HTML/LaTeX/SVG document title a, -anchors(=self) Add HTML line anchors (opt: self referencing, assumes -l) t, -tail Continue reading after end-of-file (like tail -f)

These are the options of the command line interface: The utility is also available as command line interface:Īnsifilter -html ansifile.txt will give: Several ANSI codes: Bold Underline Black Red Green Red Background Green Background Image inverted and back Features Support for ANSI art files (based on codepage 437 and ANSI.SYS sequences or BIN/XBIN/TND files) is enabled with the -art-cp437, -art-bin and -art-tundra options. These codes are interpreted by terminal emulators like xterm or Putty.Īnsifilter parses common ANSI codes to remove them or to convert them to another colored text file format (HTML, TeX, LaTeX, RTF, Pango or BBCode).

ANSI codes are commands embedded in a text stream to add formatting instructions into this text.
