Earlier quoted context omitted.
There should be a new mime type for this: text/x-ansi
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).
Show HN: Curl https://ec2.shop
71–80 of 84 posts
Re: Show HN: Curl https://ec2.shop
#72Earlier quoted context omitted.
For HTTPS to truly be meaningful we need to stop supporting HTTP as an on-ramp, to prevent people from just hijacking that initial unencrypted connection and sending anything they want.
(speaking only for myself, not my employer) I truly do not care if someone goes through the effort to MITM my curl of ec2.shop to inject fake prices or something like that. There's nothing here that's going to be executed, it'll just be printed or grepped. In theory you could exploit a 0 day in curl or my terminal or something like that, but I think if you truly think about the risks and tradeoffs here it's really no…
... yet.
Imagine someone using it to find "the biggest size available under $1" and then taking that value to execute some other script.
Re: Show HN: Curl https://ec2.shop
#73Re: Show HN: Curl https://ec2.shop
#74Earlier quoted context omitted.
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).
You might be thinking of ASCII?
Re: Show HN: Curl https://ec2.shop
#75Color output seems to be tuned for dark terminal backgrounds. Memory, vCPUs, and Storage are nearly unreadable on a white background.
Sounds like you played a stupid game and won a stupid prize.
We're hoping to have a different sort of discussion than internet default here.
Re: Show HN: Curl https://ec2.shop
#76Earlier quoted context omitted.
Can you link me to a way to use colours that change with the terminal colour preset? I haven't come across anything like that or maybe didn't pay attention. It would be really helpful You said you can't even set an env variable to change them so I assume that there is an even better way?
On Linux, in X, you can use xresources. Otherwise there's termcap
Re: Show HN: Curl https://ec2.shop
#77Earlier quoted context omitted.
Can you link me to a way to use colours that change with the terminal colour preset? I haven't come across anything like that or maybe didn't pay attention. It would be really helpful You said you can't even set an env variable to change them so I assume that there is an even better way?
Wikipedia has a good section on the different methods of describing colour: https://en.wikipedia.org/wiki/ANSI_escape_code#3/4_bit I've got some Go code that you can reuse if you want to the escape codes in Go: https://github.com/lmorg/murex/blob/master/utils/ansi/codes.... Just bare in mind that any numbers you see in documentation are sent as ASCII values rather than integers. eg `ESC[31m` (red text) should be sent…
Re: Show HN: Curl https://ec2.shop
#78Earlier quoted context omitted.
You might be thinking of ASCII?
https://en.wikipedia.org/wiki/ANSI_character_set
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?
Re: Show HN: Curl https://ec2.shop
#79Illustration: http://dmitry.cheryasov.info/random/missing-quote-mark.jpg