Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The relevant ECMA standards are full of crazy bullshit that, to the best of my knowledge, nobody has ever implemented in any hardware or software terminal, like control sequences to make lines of text run vertically (SPD), or to fully justify text (JFY), or to use a Fraktur font (SGR 20). They're also incomplete -- they go into very little detail explaining what various control sequences should do, especially in exceptional circumstances, and they don't discuss Unicode at all (as they haven't been updated since the early 1990s).


Hi I'm one of the people cited by the article. Fraktur is awesome. I implemented it in my terminal. https://github.com/jart/cosmopolitan/blob/c6bbca55e9f977e386... Now that unicode makes it easy, there's no excuse not to have fraktur!


Good to see you've added support for that but the cynic in me can't help wondering if that ANSI code is even needed. While you're right that unicode makes it easy to support, it's also even easier to output the Fraktur characters directly from the CLI application and do away with that particular escape code entirely. The bonus in doing that is you then support more terminals in the process since unicode is more widely supported than the Fraktur escape sequence.

This isn't me being critical in what you've done though. More of an adjacent commentary about the state of ANSI escape sequences.


Yes I understand. That's why the support is for the lulz. It's difficult to communicate tone over text.


Wow, okay, guess I can cross that one off my list of "ECMA-48 features nobody implements".

There's still plenty left on that list, though -- including at least one escape sequence I'm fairly certain was included as a joke (SPQR).


I can think of a use case or 2. Thermal printers (for those wanting old timey unix line printing interfaces) or e-ink displays in console mode.


The joke in SPQR is the name -- https://en.wikipedia.org/wiki/SPQR

The functionality is legitimate (although I doubt anyone uses it), but the name is pure silliness -- much like the PowerPC "eieio" instruction.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: