This repository has been archived by the owner on Nov 17, 2023. It is now read-only.
forked from theZiz/aha
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaha.1
74 lines (64 loc) · 2.42 KB
/
aha.1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
.TH aha 1 "March 28, 2017" "" "Ansi HTML Adapter"
.SH NAME
aha - Ansi HTML Adapter
.SH SYNOPSIS
\fBaha\fP [\fIoptions\fP] [\-f \fIfile\fP]
.SH DESCRIPTION
.B aha
takes SGR-colored Input and prints W3C conform HTML-Code.
.br
.B aha
reads the Input from a file or stdin and writes HTML-Code to stdout.
.SH OPTIONS
.TP
\fB\-\-help , \-h , \-?\fP
A help like this
.TP
\fB\-\-black , \-b\fP
Black Background and white "standard color"
.TP
\fB\-\-pink , \-p\fP
Pink Background
.TP
\fB\-\-stylesheet , \-s\fP
Use a stylesheet instead of inline styles
.TP
\fB\-\-iso X , \-i X
Uses ISO 8859-X instead of utf-8. X must be 1..16
.TP
\fB\-\-title X , \-t X
Gives the html output the title "X" instead of stdin or the filename
.TP
\fB\-\-line\-fix , \-l
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)
.TP
\fB\-\-word\-wrap , \-w
Wrap long lines in the html file. This works with CSS3 supporting browsers as well as many older ones.
.TP
\fB\-\-no\-header , \-n
Don't include header into generated HTML, useful for inclusion in full HTML files.
.SH EXAMPLE
.TP
\fBaha\fP \-\-help | \fBaha\fP \-\-black \-\-title "the awesome aha help"> aha\-help.htm
Creates an HTML file with the help of aha with black background
.TP
\fBcolordiff\fP oldfile.c newfile.c | \fBaha\fP > colordiff.htm
Creates an HTML file with a colorful diff-output of two files "oldfile.c" and "newfile.c" with white background
.TP
\fBls\fP \-\-color=always | \fBaha\fP \-\-pink > ls.htm
Creates an HTML file with a colorful ls-output with pink background.
.TP
\fBecho\fP q | \fBhtop\fP | \fBaha\fP \-\-black \-\-line\-fix > htop.htm
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.
.TP
MAN_KEEP_FORMATTING=1 COLUMNS=80 \fBman\fP aha | \fBul\fP | \fBaha\fP > man\-aha.htm
Creates an HTML file with the man page of aha. Man uses nroff's bold and underline, which ul converts to SGR.
.SH KNOWN BUGS
.TP
This is not really a bug, but neither \fB<blink>\fP nor the css setting \fBtext-decoration:blink\fP work on modern browsers, so if one wants to see blinking text one has to use \fB\-\-stylesheet\fP and to redefine \fB.blink\fP to make it visible. But maybe we should just accept the death of blinking text...
.SH AUTHOR
Copyleft Alexander Matthes aka Ziz 2017
.br
.SH SEE ALSO
https://github.com/theZiz/aha