| AHA(1) | General Commands Manual | AHA(1) |
aha — Convert ANSI
escape sequences to HTML
aha |
[-bhlnprsvwx] [-c
file] [-f
file] [-i
X] [-L
LANG] [-t
TITLE] [-y
STYLE] |
aha reads ECMA-48 SGR-colored text from
the standard input, converts it to colored HTML and writes it to the
standard output. The options are as follows:
-b,
--black-c
file, --css
file-f
file-h,
--help, -?aha to the standard output.-i
X, --iso
X-l,
--line-fix-L
LANG, --lang
LANG-n,
--no-header-p,
--pink-r,
--ignore-cr-s,
--stylesheet-t
TITLE, --title
TITLE-v,
--versionaha to the standard output
and exit.-w,
--word-wrap-x,
--no-xml-y
STYLE, --style
STYLECreate an HTML file with a black background, a custom title and a
larger font-size using aha's help:
$ aha -h | aha -b -t 'the awesome aha
help' -y 'font-size:1.875em' > aha-help.htmlCreate an HTML file with a white background using the output of diff(1):
$ diff -u --color=always oldfile.c
newfile.c | aha > diff.htmlCreate an HTML file with a black background from the output of
htop(1). You have to use option -l
due the other new-line-commands htop uses:
$ echo q | htop | aha -b -l >
htop.htmlCreate an HTML file from the output of this man page. man(1) uses bold and underline formatting from nroff(1), which ul(1) converts to SGR:
$ MAN_KEEP_FORMATTING=1 COLUMNS=80
man aha | ul | aha > man-aha.htmlControl Functions for Coded Character Sets, Ecma, ECMA-48, 61, 1991.
The aha utility is maintained by
Alexander Matthes ‘Ziz’
<ziz@mailbox.org>.
Blinking text using the HTML tag
<blink> and the css property
text-decoration:blink have been deprecated on modern
browsers, thus requiring the use of option -s and
redefining the .blink css class.
| August 4, 2020 | Debian |