{"id":19946746,"url":"https://github.com/bourgeoisbear/ansiart2utf8","last_synced_at":"2025-10-25T09:17:18.478Z","repository":{"id":54422005,"uuid":"86071275","full_name":"BourgeoisBear/ansiart2utf8","owner":"BourgeoisBear","description":"Processes legacy BBS-style ANSI art (ACiDDraw, PabloDraw, etc.) to UTF-8.  Escape codes and line endings are processed for terminal friendliness.","archived":false,"fork":false,"pushed_at":"2022-04-05T08:13:59.000Z","size":2574,"stargazers_count":52,"open_issues_count":1,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-07T18:51:52.995Z","etag":null,"topics":["ansi","ansi-art","ansi-colors","ansi-escape-codes","ansiart2utf8-processing","bbs","command-line","command-line-tool","commandline","console","console-app","console-application","escape-codes","escape-sequences","text"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/BourgeoisBear.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-03-24T13:31:19.000Z","updated_at":"2025-02-03T11:43:09.000Z","dependencies_parsed_at":"2022-08-13T15:10:27.828Z","dependency_job_id":null,"html_url":"https://github.com/BourgeoisBear/ansiart2utf8","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BourgeoisBear%2Fansiart2utf8","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BourgeoisBear%2Fansiart2utf8/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BourgeoisBear%2Fansiart2utf8/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BourgeoisBear%2Fansiart2utf8/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BourgeoisBear","download_url":"https://codeload.github.com/BourgeoisBear/ansiart2utf8/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252227028,"owners_count":21714923,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ansi","ansi-art","ansi-colors","ansi-escape-codes","ansiart2utf8-processing","bbs","command-line","command-line-tool","commandline","console","console-app","console-application","escape-codes","escape-sequences","text"],"created_at":"2024-11-13T00:32:13.264Z","updated_at":"2025-10-25T09:17:18.407Z","avatar_url":"https://github.com/BourgeoisBear.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ansiart2utf8\n\n[![GoDoc](https://godoc.org/github.com/BourgeoisBear/ansiart2utf8?status.png)](http://godoc.org/github.com/BourgeoisBear/ansiart2utf8)\n\nProcesses legacy BBS-style ANSI art (ACiDDraw, PabloDraw, etc.) to UTF-8.\u003cbr/\u003e\nEscape codes and line endings are processed for terminal friendliness.\n\n## BEFORE\n![Before ansiart2utf8 processing][imgBefore]\n\n## AFTER\n![After ansiart2utf8 processing][imgAfter]\n\n[imgBefore]: docs/before.png \"ANSI in Terminal Before Processing\"\n[imgAfter]: docs/after.png \"ANSI in Terminal After Processing\"\n\n## INSTALLATION\n\n1. Install the latest Go compiler from https://golang.org/dl/\n2. Install the program:\n\n```sh\ngo install github.com/BourgeoisBear/ansiart2utf8/ansiart2utf8@latest\n```\n\n## USAGE\n\n```sh\n\nansiart2utf8\n  Converts ANSI art to UTF-8 encoding, expands cursor forward ESC sequences\n  into spaces, wraps/resets at a specified line width, sends result to STDOUT.\n\n  Leave the [FILE] parameter empty to read from STDIN.\n\nUSAGE: ansiart2utf8 [OPTION]... [FILE]...\n\nOPTIONS\n  -bytes uint\n        MAXIMUM OUTPUT BYTES PER-ROW (0 = NO LIMIT)\n  -debug\n        DEBUG MODE: line numbering + pipe @ \\n\n  -w uint\n        LINE WRAP WIDTH (default 80)\n  -x    ANSI TO XTERM-256 COLOR SUBSTITUTION\n          (to overcome strange terminal color scheme palettes)\n\n```\n\n## NOTES\n\n**To see the result, make sure that your terminal font provides glyphs for the old CP437 box drawing characters.**\n\nHere are a few fonts that will do:\n\n- [Consolas](https://en.wikipedia.org/wiki/Consolas)\n- [Courier New](https://www.microsoft.com/typography/fonts/family.aspx?FID=10)\n- [DejaVu Sans Mono](https://github.com/dejavu-fonts/dejavu-fonts)\n- [Envy Code R](https://damieng.com/blog/2008/05/26/envy-code-r-preview-7-coding-font-released)\n- [Iosevka](https://be5invis.github.io/Iosevka/)\n\n### Seeing Code Page 437 in Vim\n\n`:e ++enc=cp437`\n\n### Resources\n\n- [PabloDraw](http://picoe.ca/products/pablodraw/), an ANSI drawing program for Windows\n- [ACiDDraw](http://www.acid.org/apps/apps.html), an ANSI drawing program for DOS\n- Lots of ANSI art to be seen here:\u003cbr/\u003ehttp://blocktronics.org/artpacks/\n- Ultimate guide to pimping your terminal:\u003cbr/\u003ehttp://mewbies.com/acute_terminal_fun_table_of_contents.htm\n- A very clear mapping of code page 437 characters to Unicode at Wikipedia:\u003cbr/\u003e\n  https://en.wikipedia.org/wiki/Code_page_437#Characters\n- Helpful references on ANSI escape codes:\u003cbr/\u003e\n  https://en.wikipedia.org/wiki/ANSI_escape_code\u003cbr/\u003e\n  https://www.gnu.org/software/screen/manual/html_node/Control-Sequences.html\n\n### Media\n\n- http://artscene.textfiles.com/ansi/\n- https://www.ansilove.org/bbs.html\n- http://bbs.ninja/\n- http://ascii-table.com/ansi-escape-sequences.php\n- http://bluesock.org/~willg/dev/ansi.html\n- https://github.com/k0kubun/go-ansi\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbourgeoisbear%2Fansiart2utf8","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbourgeoisbear%2Fansiart2utf8","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbourgeoisbear%2Fansiart2utf8/lists"}