ANSI2HTML_PY(1)
β¨ ANSI2HTML_PY β¨ (User Commands) π
Okay so bestie, the manual name is ansi2html_py and its whole job is to translate ANSI text output into HTML π It's giving colourful terminal output, but make it web-friendly π
π¦ NAME
ansi2html_py β translate ANSI text output to HTML β¨
π SYNOPSIS
usage: $ ls --color=always | ansi2html > directories.html $ sudo tail /var/log/messages | ccze -A | ansi2html > logs.html $ task burndown | ansi2html > burndown.html
π DESCRIPTION
Okay so the usage vibes are: pipe your coloured output in and it spits out HTML. Like ls --color=always | ansi2html > directories.html, or sudo tail /var/log/messages | ccze -A | ansi2html > logs.html, or task burndown | ansi2html > burndown.html π
β¨ OPTIONS β¨
-h,--helpβ show this help message and exit π-V,--versionβ show program's version number and exit π₯-p,--partialβ Process lines as they come in, no headers produced π§-L,--latexβ Export as LaTeX instead of HTML π-i,--inlineβ Inline style without headers or template πΈ-H,--headersβ Just produce the<style>tag π«Ά-f,--font-sizeSIZE β Set the global font size in the output π-l,--light-backgroundβ Set output to 'light background' mode βοΈ-W,--no-line-wrapβ Disable line wrapping π¦-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-encodingENCODING β Specify input encoding π--output-encodingENCODING β Specify output encoding π§-s,--schemeSCHEME β Specify colour palette scheme. Default:'ansi2html'. Choices:['ansi2html', 'dracula', 'mint-terminal', 'osx', 'osx-basic', 'osx-solid-colors', 'solarized', 'xterm']π-t,--titleOUTPUT_TITLE β Specify output title π
Sign-off time, bestie π«Ά This is ansi2html_py 1.9.2 from January 2026, and you literally got the whole manual served π β¨
π¦ where this page comes from
- ubuntu resolute: python3-ansi2html 1.9.2-2 Β· LGPL-3.0-or-later
- ubuntu stonking: python3-ansi2html 1.9.2-2 Β· LGPL-3.0-or-later
- π girlified by claude-haiku-5-5 on : a language model's rewrite of the original, under its terms