• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

.gitignoreH A D04-Aug-202027 43

CHANGELOGH A D04-Aug-20203.3 KiB9069

LICENSE.LGPLv2+H A D04-Aug-202024.8 KiB482399

LICENSE.MPL1.1H A D04-Aug-202025.4 KiB475400

MakefileH A D04-Aug-2020450 2617

README.mdH A D04-Aug-20201.4 KiB3626

aha.1H A D04-Aug-20203.3 KiB140139

aha.cH A D04-Aug-202035.5 KiB1,1941,090

README.md

1aha - Ansi HTML Adapter
2=======================
3
4Converts ANSI escape sequences of a unix terminal to HTML code.
5
6![aha screenshot](/screenshot.png?raw=true "aha screenshot")
7
8Examples
9========
10
11* `aha --help | aha --black --title "the awesome aha help"> aha-help.htm`
12  * Creates an HTML file of the help of aha with black background
13* `colordiff oldfile.c newfile.c | aha > colordiff.htm`
14  * Creates an HTML file with a colorful diff-output of two files "oldfile.c" and "newfile.c" with white background
15* `ls --color=always | aha --pink > ls.htm`
16 * Creates an HTML file with a colorful ls-output with pink background.
17* `echo q | htop | aha --black --line-fix > htop.htm`
18  * Creates an HTML file with the output of htop. You have to use --line-fix due the other new-line-commands htop uses.
19* `MAN_KEEP_FORMATTING=1 COLUMNS=80 man aha | ul | aha > man-aha.htm`
20  * Creates an HTML file with the man page of aha. Man uses nroff's bold and underline, which ul converts to SGR.
21
22Compilation / Installation
23==========================
24
25Aha has no dependencies except for a C compiler and `make`.
26
27To compile just type `make`.
28To install aha to `/usr/local/` type `make install`.
29You can change the installation directory with `make install PREFIX=/your/path`.
30You can override the man directory with `make install MANDIR=/your/path/man`
31
32Licensing
33=========
34
35All files are subjects to the LGPL2+ or the MPL1.1 (Dual licensed).
36