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

GoDoc

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

BEFORE

Before ansiart2utf8 processing

AFTER

After ansiart2utf8 processing

INSTALLATION

  1. Install the latest Go compiler from https://golang.org/dl/
  2. Install the program:
go install github.com/BourgeoisBear/ansiart2utf8/ansiart2utf8@latest

USAGE

ansiart2utf8
  Converts ANSI art to UTF-8 encoding, expands cursor forward ESC sequences
  into spaces, wraps/resets at a specified line width, sends result to STDOUT.

  Leave the [FILE] parameter empty to read from STDIN.

USAGE: ansiart2utf8 [OPTION]... [FILE]...

OPTIONS
  -bytes uint
        MAXIMUM OUTPUT BYTES PER-ROW (0 = NO LIMIT)
  -debug
        DEBUG MODE: line numbering + pipe @ \n
  -w uint
        LINE WRAP WIDTH (default 80)
  -x    ANSI TO XTERM-256 COLOR SUBSTITUTION
          (to overcome strange terminal color scheme palettes)

NOTES

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