Skip to content

Commit d007656

Browse files
aha: add page (#23005)
Co-authored-by: Ivan Baluta <ivanbaluta.dev@gmail.com>
1 parent 3677543 commit d007656

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

pages/common/aha.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# aha
2+
3+
> Convert ANSI escape sequences to HTML.
4+
> More information: <https://manned.org/aha>.
5+
6+
- Convert terminal output to HTML:
7+
8+
`{{color_command}} | aha > {{path/to/output}}.html`
9+
10+
- Read from a file instead of `stdin`:
11+
12+
`aha -f {{path/to/input.txt}} > {{path/to/output}}.html`
13+
14+
- Convert to HTML with a black background:
15+
16+
`{{color_command}} | aha {{[-b|--black]}} > {{path/to/output}}.html`
17+
18+
- Convert to HTML with a pink background and set the document title:
19+
20+
`{{color_command}} | aha {{[-p|--pink]}} {{[-t|--title]}} "{{title}}" > {{path/to/output}}.html`
21+
22+
- Add a CSS file to the HTML output:
23+
24+
`{{color_command}} | aha {{[-c|--css]}} {{path/to/style}}.css > {{path/to/output}}.html`
25+
26+
- Enable word-wrap to prevent horizontal scrolling:
27+
28+
`{{color_command}} | aha {{[-w|--word-wrap]}} > {{path/to/output}}.html`
29+
30+
- Display help:
31+
32+
`aha {{[-h|--help]}}`

0 commit comments

Comments
 (0)