ansi2html - Man Page
Convert text with ANSI color codes to HTML
Synopsis
Description
Tool to convert text with ANSI color codes to HTML.
Options
- -p, --partial
Process lines as them come in. No headers are produced.
- -i, --inline
Inline style without headers or template.
- -H, --headers
Just produce the "<style>" tag.
- -f SIZE, --font-size=SIZE
Set the global font size in the output.
- -l, --light-background
Set output to "light background" mode.
- -a, --linkify
Transform URLs into "<a>" links.
- -u, --unescape
Do not escape XML tags found in the input.
- -m, --markup-lines
Surround lines with "<span id='line-n'>..</span>".
- --input-encoding=ENCODING
Specify input encoding.
- --output-encoding=ENCODING
Specify output encoding.
- -h, --help
Show this help message and exit.
- --version
Show program’s version number and exit.
Examples
$ ls --color=always | ansi2html > directories.html $ sudo tail /var/log/messages | ccze -A | ansi2html > logs.html $ task burndown | ansi2html > burndown.html
Homepage
Authors
- Ralph Bean <rbean@redhat.com>
- Sebastian Pipping <sebastian@pipping.org>
Referenced By
ansi2txt(1), pipetty(1), ttyrec2ansi(1).
01/21/2022 ansi2html Manual