Investigate ESC D defined as IND vs CUB #1303

Open
opened 2026-01-30 22:21:49 +00:00 by claunia · 0 comments
Owner

Originally created by @zadjii-msft on GitHub (May 24, 2019).

Right now in our documentation, ESC D is defined as the VT sequence CUB. However, in the vt-100 spec, ESC D should be IND.

In fact, I'm not sure that any of what we have on ESC A, ESC B, ESC C, ESC D (source) is correct. I vaguely recall something about ANSI.SYS for those sequences, but I can't be sure.

We should investigate if those sequences are being handled correctly, and if they aren't, make sure they are fixed.

And update the documentation with whatever we find.

Originally created by @zadjii-msft on GitHub (May 24, 2019). Right now in [our documentation](https://github.com/MicrosoftDocs/Console-Docs/blob/master/docs/console-virtual-terminal-sequences.md#simple-cursor-positioning), `ESC D` is defined as the VT sequence [CUB](https://vt100.net/docs/vt510-rm/CUB.html). However, in the vt-100 spec, `ESC D` should be [IND](https://vt100.net/docs/vt510-rm/IND.html). In fact, I'm not sure that any of what we have on `ESC A`, `ESC B`, `ESC C`, `ESC D` ([source](https://github.com/microsoft/terminal/blob/master/src/terminal/parser/OutputStateMachineEngine.cpp#L162-L177)) is correct. I vaguely recall something about `ANSI.SYS` for those sequences, but I can't be sure. We should investigate if those sequences are being handled correctly, and if they aren't, make sure they are fixed. And update the [documentation ](https://github.com/MicrosoftDocs/Console-Docs/blob/master/docs/console-virtual-terminal-sequences.md#simple-cursor-positioning) with whatever we find.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#1303