Command prompt: cursor shape won't change from Insert/Overwrite mode #21330

Closed
opened 2026-01-31 07:41:15 +00:00 by claunia · 3 comments
Owner

Originally created by @Hexaae on GitHub (Feb 29, 2024).

Windows Terminal version

1.19.10573.0

Windows build number

10.0.22631.3155

Other Software

No response

Steps to reproduce

Open MS-DOS command prompt.
Change Insert/Overwrite mode from your physical keyboard.

Expected Behavior

Cursor shape should change to let you notice you're in Insert or Overwrite cursor mode.

Actual Behavior

Cursor shape stays always the same.

Originally created by @Hexaae on GitHub (Feb 29, 2024). ### Windows Terminal version 1.19.10573.0 ### Windows build number 10.0.22631.3155 ### Other Software _No response_ ### Steps to reproduce Open MS-DOS command prompt. Change Insert/Overwrite mode from your physical keyboard. ### Expected Behavior Cursor shape should change to let you notice you're in Insert or Overwrite cursor mode. ### Actual Behavior Cursor shape stays always the same.
claunia added the Issue-BugResolution-Duplicate labels 2026-01-31 07:41:15 +00:00
Author
Owner

@j4james commented on GitHub (Feb 29, 2024):

The blocking issue for this is #7382. We need to pass on the request for the overwrite-mode cursor via conpty, which requires an equivalent escape sequence for the half-height block cursor, but there isn't a standard way to achieve that.

It's also worth noting that this particular cursor change is achieved with an internal SetCursorDBMode call, which toggles the "double cursor" mode, independent of the actual cursor size - it's not using the public SetConsoleCursorInfo API. So that's something we need to bear in mind if we want to get this working in conpty.

@j4james commented on GitHub (Feb 29, 2024): The blocking issue for this is #7382. We need to pass on the request for the overwrite-mode cursor via conpty, which requires an equivalent escape sequence for the half-height block cursor, but there isn't a standard way to achieve that. It's also worth noting that this particular cursor change is achieved with an internal `SetCursorDBMode` call, which toggles the "double cursor" mode, independent of the actual cursor size - it's not using the public `SetConsoleCursorInfo` API. So that's something we need to bear in mind if we want to get this working in conpty.
Author
Owner

@carlos-zamora commented on GitHub (Mar 6, 2024):

Thanks for filing. We're going to mark this as a /dup of #7382

@carlos-zamora commented on GitHub (Mar 6, 2024): Thanks for filing. We're going to mark this as a /dup of #7382
Author
Owner

@microsoft-github-policy-service[bot] commented on GitHub (Mar 6, 2024):

Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!

@microsoft-github-policy-service[bot] commented on GitHub (Mar 6, 2024): Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report! <!-- Policy app identification https://img.shields.io/static/v1?label=PullRequestIssueManagement. -->
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#21330