News for hackers. Stuff that matters.
Re:Show HN: Curl https://ec2.shop by jasonjayr on Tuesday June 30, 2020 @08:22AM (#23689320)
There should be a new mime type for this: text/x-ansi
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).
Re:Show HN: Curl https://ec2.shop by geofft on Tuesday June 30, 2020 @01:20PM (#23692414)
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.
Re:Show HN: Curl https://ec2.shop by skissane on Wednesday July 01, 2020 @04:48AM (#23699321)
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.)
Re:Show HN: Curl https://ec2.shop by jasonjayr on Wednesday July 01, 2020 @08:37AM (#23700663)
Yes, I should have been more specific. text/x-term-${TERM} probably would be better, since it could be any number of terminal types...
Re:Show HN: Curl https://ec2.shop by nitrogen on Tuesday June 30, 2020 @02:13PM (#23692988)
You might be thinking of ASCII?
Re:Show HN: Curl https://ec2.shop by gruez on Tuesday June 30, 2020 @02:35PM (#23693228)
Re:Show HN: Curl https://ec2.shop by nitrogen on Tuesday June 30, 2020 @06:26PM (#23695487)
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?