Virtual Terminal Sequences for Simple Cursor Positioning don't work #14924

Open
opened 2026-01-31 04:23:22 +00:00 by claunia · 0 comments
Owner

Originally created by @Toxaris on GitHub (Aug 22, 2021).

Originally assigned to: @DHowett on GitHub.

Windows Terminal version (or Windows build number)

10.0.19042.1165

Other Software

No response

Steps to reproduce

Activate virtual terminal processing and print "Hello, world!\x1bD?" to stdout.

Expected Behavior

Based on the documentation about virtual terminal sequences for simple cursor positioning I expect to see:

Hello, World?

That is, I expect that \x1bD moves the cursor left over the ! and then the ? is printed over the !.

In other words, I expect that \x1bD works like \x1b[1D.

Actual Behavior

I see:

Hello, World!
             ?
Originally created by @Toxaris on GitHub (Aug 22, 2021). Originally assigned to: @DHowett on GitHub. ### Windows Terminal version (or Windows build number) 10.0.19042.1165 ### Other Software _No response_ ### Steps to reproduce Activate virtual terminal processing and print `"Hello, world!\x1bD?"` to stdout. ### Expected Behavior Based on the documentation about [virtual terminal sequences for simple cursor positioning](https://docs.microsoft.com/en-us/windows/console/console-virtual-terminal-sequences#simple-cursor-positioning) I expect to see: ``` Hello, World? ``` That is, I expect that `\x1bD` moves the cursor left over the `!` and then the `?` is printed over the `!`. In other words, I expect that `\x1bD` works like `\x1b[1D`. ### Actual Behavior I see: ``` Hello, World! ? ```
claunia added the Needs-TriageNeeds-Tag-FixIssue-Docs labels 2026-01-31 04:23:22 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#14924