Processes legacy BBS-style ANSI art (ACiDDraw, PabloDraw, etc.) to UTF-8.
Escape codes and line endings are processed for terminal friendliness.
USAGE: ansiart2utf8 [OPTION]...
OPTIONS
-bytes uint
MAXIMUM OUTPUT BYTES PER-ROW (0 = NO LIMIT)
-d DEBUG MODE: LINE NUMBERING + PIPE @ \n
-f string
INPUT FILENAME, OR "-" FOR STDIN (default "-")
-w uint
LINE WIDTH (default 80)
To build:
- Install the latest Go compiler from https://golang.org/dl/
- Install the program:
go install github.com/BourgeoisBear/ansiart2utf8/ansiart2utf8@latest
To see the result, make sure that your terminal font provides glyphs for the old CP437 box drawing characters.
Here are a few fonts that will do:
:e ++enc=cp437
- PabloDraw, an ANSI drawing program for Windows
- ACiDDraw, an ANSI drawing program for DOS
- Lots of ANSI art to be seen here:
http://blocktronics.org/artpacks/ - Ultimate guide to pimping your terminal:
http://mewbies.com/acute_terminal_fun_table_of_contents.htm - A very clear mapping of code page 437 characters to Unicode at Wikipedia:
https://en.wikipedia.org/wiki/Code_page_437#Characters - Helpful references on ANSI escape codes:
https://en.wikipedia.org/wiki/ANSI_escape_code
https://www.gnu.org/software/screen/manual/html_node/Control-Sequences.html