1 .TH aha 1 "January 24, 2015" "" "Ansi HTML Adapter"
5 aha - Ansi HTML Adapter
9 \fBaha\fP [\fIoptions\fP] [\-f \fIfile\fP]
13 takes SGR-colored Input and prints W3C conform HTML-Code.
16 reads the Input from a file or stdin and writes HTML-Code to stdout.
19 \fB\-\-help , \-h , \-?\fP
23 Black Background and white "standard color"
28 \fB\-\-stylesheet , \-s\fP
29 Use a stylesheet instead of inline styles
32 Uses ISO 8859-X instead of utf-8. X must be 1..16
34 \fB\-\-title X , \-t X
35 Gives the html output the title \"X\" instead of stdin or the filename
37 \fB\-\-line\-fix , \-l
38 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 \fBEXAMPLE\fP)
40 \fB\-\-word\-wrap , \-w
41 Wrap long lines in the html file. This works with CSS3 supporting browsers as well as many older ones.
43 \fB\-\-no\-header , \-n
44 Don't include header into generated HTML, useful for inclusion in full HTML files.
49 \fBaha\fP \-\-help | \fBaha\fP \-\-black \-\-title "the awesome aha help"> aha\-help.htm
50 Creates an HTML file with the help of aha with black background
52 \fBcolordiff\fP oldfile.c newfile.c | \fBaha\fP > colordiff.htm
53 Creates an HTML file with a colorful diff-output of two files "oldfile.c" and "newfile.c" with white background
55 \fBls\fP \-\-color=always | \fBaha\fP \-\-pink > ls.htm
56 Creates an HTML file with a colorful ls-output with pink background.
58 \fBecho\fP q | \fBhtop\fP | \fBaha\fP \-\-black \-\-line\-fix > htop.htm
59 Creates an HTML file with the output of htop. You have to use \fB\-\-line\-fix\fP due the other new-line-commands htop uses.
62 Copyleft Alexander Matthes aka Ziz 2015
67 https://github.com/theZiz/aha