Comment by skrellm
2 hours ago
> "ANSI Art" did not use the American National Standards Institute.
Yes, they do. All the color escape sequences (CSI and SGR) used in these were standardized by ANSI. See https://en.wikipedia.org/wiki/ANSI_escape_code
More importantly, where the name is originating from, is the DOS driver. By default DOS did not interpret color codes, one would have to load ANSI.SYS for that, and that's where the term "ANSI art" comes from. See https://en.wikipedia.org/wiki/ANSI.SYS
> There is also a debate as to whether Unicode/Utf-8 characters with ANSI and Xterm escape codes constitutes "ANSI art." Some are calling it "UNSI art," or just modern terminal art.
Yes, they do. Escape sequences have nothing to do with the encoding and code page (all characters in CSI and SGR are ASCII only, hence the same in both CP437 and UNICODE and even as UTF-8 encoded). Using the name "UNSI art" for these is good practice though to explicitly indicate UTF-8 encoding (and maybe the existence of non-standard SGR sequences, like 24 bit RGB colors).
I have a project (interactive textual adventure) where I convert graphics into ANSI/ASCII art on-the-fly. I've implemented several methods, you can choose between them with CLI flags (including different escape sequences and charactersets as well). See https://gitlab.com/bztsrc/meg4_advgame/#playing-in-a-termina...
No comments yet
Contribute on Hacker News ↗