Re:Show HN: Curl https://ec2.shop
by gruez on Tuesday June 30, 2020 @11:16AM
(#23690910)
but why "ansi"? ANSI is only an encoding. You can have html that's in ansi, and you can have something like OP's that's not in ansi (eg. if you add emojis).
[ Parent
| on HN ]
This is "ANSI" as in ANSI X3.64 escape sequences, not "ANSI" as in a character encoding. You can output color to curl on an ANSI-compatible terminal but not to something expecting actual plain text like a browser.
I think text/ecma48 would be a better name. There are lots of ANSI standards. (I guess text/ansi-x3.64 might also work, but text/ecma48 seems simpler.)
Yes, I should have been more specific. text/x-term-${TERM} probably would be better, since it could be any number of terminal types...
You might be thinking of ASCII?
From the wiki: "The phrase ANSI character set has no well-defined meaning and has been used to refer to the following, among other things"
So if you are thinking of CP-437 or Windows-1252 I suppose that's fair, but generally in the context of terminal apps "ANSI" without qualification refers to the escape sequences.
Now I am curious though, did ANSI the standards body have any official character encoding standards?