Console.CursorSize method does not work in terminal but works in conhost. #20541

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

Originally created by @ghost on GitHub (Sep 25, 2023).

Windows Terminal version

1.17.11461.0

Windows build number

10.0.22621.2283

Other Software

No response

Steps to reproduce

  1. Compile the sample code at https://learn.microsoft.com/en-us/dotnet/api/system.console.cursorsize?view=net-7.0.

  2. Run under Terminal. Note that the cursor size remains what was set in the profile.

  3. Run under conhost.exe (the old cmd.exe). Note that the cursor size changes in response to changes to the CursorSize property.

Expected Behavior

I expected the cursor size to change in response to changes to the property as the documentation for CursorSize says nothing about the functionality being deprecated or impaired under Terminal.

Actual Behavior

The cursor size setting in the terminal profile remains constant and overrides any change to the CursorSize property.

Originally created by @ghost on GitHub (Sep 25, 2023). ### Windows Terminal version 1.17.11461.0 ### Windows build number 10.0.22621.2283 ### Other Software _No response_ ### Steps to reproduce 1. Compile the sample code at https://learn.microsoft.com/en-us/dotnet/api/system.console.cursorsize?view=net-7.0. 2. Run under Terminal. Note that the cursor size remains what was set in the profile. 3. Run under conhost.exe (the old cmd.exe). Note that the cursor size changes in response to changes to the CursorSize property. ### Expected Behavior I expected the cursor size to change in response to changes to the property as the documentation for CursorSize says nothing about the functionality being deprecated or impaired under Terminal. ### Actual Behavior The cursor size setting in the terminal profile remains constant and overrides any change to the CursorSize property.
claunia added the Issue-BugResolution-Duplicate labels 2026-01-31 07:17:02 +00:00
Author
Owner

@lhecker commented on GitHub (Sep 25, 2023):

I believe this issue is a duplicate of #7382.
tl;dr: We need to define a custom escape sequence first that communicates from ConPTY (the console API -> VT translator) to Windows Terminal that the cursor size has changed.

@lhecker commented on GitHub (Sep 25, 2023): I believe this issue is a duplicate of #7382. tl;dr: We need to define a custom escape sequence first that communicates from ConPTY (the console API -> VT translator) to Windows Terminal that the cursor size has changed.
Author
Owner

@zadjii-msft commented on GitHub (Sep 25, 2023):

Yep, sure is /dup #7382

@zadjii-msft commented on GitHub (Sep 25, 2023): Yep, sure is /dup #7382
Author
Owner

@microsoft-github-policy-service[bot] commented on GitHub (Sep 25, 2023):

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 (Sep 25, 2023): 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!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#20541