Start Of String control sequence behaviour following DEC rather than ECMA-48? #4050
Replies: 1 comment 1 reply
-
|
Interesting bug. I guess this comes down to what is Ghostty emulating. The ever popular Paul Flo Williams parser states (emphasis mine)
No mention of SOS here. In this comment, j4james quotes the DEC standard:
This is in reference to a section called Device Control Strings, which lists the following supported openers:
Again, no mention of SOS yet. In the very next section they state:
So - DEC doesn't support it. If we are emulating DEC it's not clear what we should do. I think from a strict reading of ECMA, we are behaving incorrectly (as are most other terminals). @mitchellh - What do you think? I think the correct thing to do is to special case |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
ECMA-48, section 8.3.128, defines the behaviour of the
ESC-XSOS (Start Of String) control sequence, stating (emphasis mine)(See also section 5.6 on control strings)
Ghostty does not comply with this definition, though, admittedly, few terminal emulators do. Running
print("\x1bXfoo\x1bebar\x1b\\")in Python (ESC-X foo ESC-e bar ESC-\), under Ghostty 1.0.1-main+a8e5eef1, indicates that the escape sequence is terminated by any escape, according to DEC behaviour.A discussion of this divergence of behaviour in relation to Alacritty can be found here.
Beta Was this translation helpful? Give feedback.
All reactions