MMEdit V5.3.4
| Author | Message | ||||
| bfwolf Senior Member Joined: 03/01/2025 Location: GermanyPosts: 246 |
"Cancel" wasn't meant to undo an already executed escape sequence! By "cancel," I meant the following: When the VT-100 receives an ESC, it assumes that an escape sequence is about to be started and waits for the next character, which then further specifies what should be done—e.g., a '[', which many escape sequences begin with. The output is therefore initially after the first ESC character. If another ESC character follows, it's clear that there is no escape sequence, because there is no "ESC ESC" sequence! Just like you write "\\" in C strings when you want to insert a '\' into the string. '\' is the escape character, and this is canceled out by another '\'. https://vt100.net/docs/vt100-ug/chapter3.html "The processing of the control sequence then continues with the next character received. The exceptions are: if the character ESC occurs, the current control sequence is aborted, and a new one commences beginning with the ESC just received. If the character CAN (308) or the character SUB (328) occurs, the current control sequence is aborted." Perhaps many "compatible" terminal programs just abort when a 2nd ESC received within the sequence? Regards |
||||