#ECMA35

2025-06-08

@stafwag

All in all, getting it right, and compatible with what's out in the world, is quite a task. Many of us end up with entire DEC VT state machines. Because it turns out that it's perfectly legitimate to emit some C0 control characters in the middle of a control sequence. I kid you not.

#ECMA35 #ECMA48

2025-06-08

@stafwag

And then once control sequences are parsed correctly, on top of that there are four different types of control sequence used in the wild for setting colours: old AIXterm, XTerm 256-colour, ITU/IEC T.416 faulty, and ITU/IEC T.416 correct.

There's a whole history of a missed field and erroneous use of semi-colons instead of colons, for the ITU/IEC T.416 faulty case.

Plus the "default" colour.

Plus multiple graphics rendtions in a single control sequence.

#ECMA35 #ECMA48

2025-06-08

@stafwag

Colours in ncurses. Ouch!

Your SGR parser is a bit simplistic. The basic syntax of control sequences in ECMA-35 and ECMA-48 is a bit more complex than that. More than digits can be parameter characters, and there are intermediate characters to contend with too. Plus there's true CSI rather than its 7-bit alias.

#ECMA35 #ECMA48

2023-06-29

Re: portal.mozz.us/gemini/thrig.me

There's even more rabbit-hole than this.

For example: It's largely a myth that Form Feed clears the screen, or even ever did, despite what reams of introductions to programming in C say.

(continued...)
#FormFeed #ECMA35 #ECMA48 #VDUs #CProgramming

Client Info

Server: https://mastodon.social
Version: 2025.07
Repository: https://github.com/cyevgeniy/lmst