Skip to content

Processes legacy BBS-style ANSI art (ACiDDraw, PabloDraw, etc.) to UTF-8. Escape codes and line endings are processed for terminal friendliness.

License

Notifications You must be signed in to change notification settings

BourgeoisBear/ansiart2utf8

Repository files navigation

ansiart2utf8

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)

BEFORE

Before ansiart2utf8 processing

AFTER

After ansiart2utf8 processing

Notes

To build:

  1. Install the latest Go compiler from https://golang.org/dl/
  2. 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:

Seeing Code Page 437 in Vim

:e ++enc=cp437

Resources

Media