Scroll to navigation

aha(1) Ansi HTML Adapter aha(1)

NAME


aha - Ansi HTML Adapter

SYNOPSIS

aha [options] [-f file]

DESCRIPTION

aha takes SGR-colored Input and prints W3C conform HTML-Code.
aha reads the Input from a file or stdin and writes HTML-Code to stdout.

OPTIONS

A help like this
Black Background and white "standard color"
Pink Background
Use a stylesheet instead of inline styles
Uses ISO 8859-X instead of utf-8. X must be 1..16
Gives the html output the title "X" instead of stdin or the filename
Uses a fix for inputs using control sequences to change the cursor position like htop. It's a hot fix, it may not work with any program like htop. (See EXAMPLE)
Wrap long lines in the html file. This works with CSS3 supporting browsers as well as many older ones.
Don't include header into generated HTML, useful for inclusion in full HTML files.

EXAMPLE

Creates an HTML file with the help of aha with black background
Creates an HTML file with a colorful diff-output of two files "oldfile.c" and "newfile.c" with white background
Creates an HTML file with a colorful ls-output with pink background.
Creates an HTML file with the output of htop. You have to use --line-fix due the other new-line-commands htop uses.
Creates an HTML file with the man page of aha. Man uses nroff's bold and underline, which ul converts to SGR.

KNOWN BUGS

AUTHOR

Copyleft Alexander Matthes aka Ziz 2017
ziz@mailbox.org

SEE ALSO

https://github.com/theZiz/aha

March 28, 2017