Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Color improvements #83

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,11 @@ all: aha

aha: aha.c
$(CC) $(CFLAGS) $(LDFLAGS) $(CPPFLAGS) aha.c -o $@
test_print: test_print.c
$(CC) $(CFLAGS) $(LDFLAGS) $(CPPFLAGS) test_print.c -o $@

clean:
rm -f aha
rm -f aha aha_test

install: aha
ifeq ($(platform), Darwin)
Expand Down
10 changes: 10 additions & 0 deletions aha.1
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ The options are as follows:
.Bl -tag -width Ds
.It Fl b , Fl Fl black
Style HTML output to use a black background with white text.
.It Fl Fl colors
Style HTML output to use a black background with white text.
Set a custom color scheme. X must be a comma-separated list of 18 CSS colors representing the default colors and all 16 4-bit color codes:
"foreground, background, black, red, green, yellow, blue, magenta, cyan, white, (+ bright versions of those eight)"
.It Fl c Ar file , Fl Fl css Ar file
Adds the given css
.Ar file
Expand Down Expand Up @@ -96,6 +100,12 @@ Create an HTML file with a white background using the output of
.Pp
.Dl $ diff -u --color=always oldfile.c newfile.c | aha > diff.html
.Pp
Create an HTML file with a white foreground, blue background, and mapping every 4-bit color code to red using
.Nm Ap s
help:
.Pp
.Dl $ aha -h | aha --colors '#fff,#00f,red,red,red,red,red,red,red,red,red,red,red,red,red,red,red,red' > aha-help.html
.Pp
Create an HTML file with a black background from the output of
.Xr htop 1 .
You have to use option
Expand Down
Loading