Cursor shape: Filled box does not work as expected. #19567

Closed
opened 2026-01-31 06:47:27 +00:00 by claunia · 8 comments
Owner

Originally created by @kgfly on GitHub (Mar 22, 2023).

Windows Terminal version

1.16.10262.0

Windows build number

10.0.22621.1413

Other Software

No response

Steps to reproduce

Change cursor shape to Filled box
type aaa
and move back one character.

Expected Behavior

Windows classic console
image

You can see "a" easily, under the cursor. The black font is easy to see.

Linux has similar behavior.

Actual Behavior

image

It's hard to see "a" under the cursor. The gray font is hard to see.

Originally created by @kgfly on GitHub (Mar 22, 2023). ### Windows Terminal version 1.16.10262.0 ### Windows build number 10.0.22621.1413 ### Other Software _No response_ ### Steps to reproduce Change cursor shape to Filled box type aaa and move back one character. ### Expected Behavior Windows classic console ![image](https://user-images.githubusercontent.com/12282281/227061147-40ca9688-06ed-402d-8453-93d6c3ea2a4a.png) You can see "a" easily, under the cursor. The black font is easy to see. Linux has similar behavior. ### Actual Behavior ![image](https://user-images.githubusercontent.com/12282281/227061104-c87025bf-c3e5-45b0-aa83-0127804e0f07.png) It's hard to see "a" under the cursor. The gray font is hard to see.
claunia added the Area-RenderingIssue-BugResolution-DuplicateProduct-Terminal labels 2026-01-31 06:47:28 +00:00
Author
Owner

@lhecker commented on GitHub (Mar 23, 2023):

As a workaround, until we fix the default text renderer, you can opt into the upcoming text renderer here:
image

After clicking save, you have to close and reopen all your tabs.

@lhecker commented on GitHub (Mar 23, 2023): As a workaround, until we fix the default text renderer, you can opt into the upcoming text renderer here: ![image](https://user-images.githubusercontent.com/2256941/227272051-0bfb25f6-f39c-4359-8a6e-232c01d9fb60.png) After clicking save, you have to close and reopen all your tabs.
Author
Owner

@kgfly commented on GitHub (Mar 23, 2023):

Thanks.

Is there an active tracking item for "until we fix the default text renderer, "?

@kgfly commented on GitHub (Mar 23, 2023): Thanks. Is there an active tracking item for "until we fix the default text renderer, "?
Author
Owner

@YUSHACOD commented on GitHub (Mar 24, 2023):

The thing with the current work-around is that it will work for certain color schemes but not so well for others. This is very annoying as the cursor is the most important part of the terminal app. And working without being able to see the text is an horrible nightmare.

@YUSHACOD commented on GitHub (Mar 24, 2023): The thing with the current work-around is that it will work for certain color schemes but not so well for others. This is very annoying as the cursor is the most important part of the terminal app. And working without being able to see the text is an horrible nightmare.
Author
Owner

@lhecker commented on GitHub (Mar 24, 2023):

If you don't mind, could you give me an example for a color theme with which the workaround doesn't work? I'd be interested in fixing any such issues.


Is there an active tracking item for "until we fix the default text renderer, "?

Edit: No there isn't. Let's use this one. 🙂

@lhecker commented on GitHub (Mar 24, 2023): If you don't mind, could you give me an example for a color theme with which the workaround doesn't work? I'd be interested in fixing any such issues. --- > Is there an active tracking item for "until we fix the default text renderer, "? Edit: No there isn't. Let's use this one. 🙂
Author
Owner

@lhecker commented on GitHub (Mar 24, 2023):

Oh, I think I can already guess what the issue is. Some themes use colored cursors and if the theme specifies colored cursors, we do draw them in that exact color. This affects all 3 built-in light themes.
Right now, it's a bit of a hidden trick, but to get inverted cursors in AtlasEngine you have to make sure the cursor color is set to #FFFFFF. I think once we roll that new text renderer out as the default, there's a high chance we'll modify all built-in themes to use such inverted cursors instead of colored ones.

@lhecker commented on GitHub (Mar 24, 2023): Oh, I think I can already guess what the issue is. Some themes use colored cursors and if the theme specifies colored cursors, we do draw them in that exact color. This affects all 3 built-in light themes. Right now, it's a bit of a hidden trick, but to get inverted cursors in `AtlasEngine` you have to make sure the cursor color is set to #FFFFFF. I think once we roll that new text renderer out as the default, there's a high chance we'll modify all built-in themes to use such inverted cursors instead of colored ones.
Author
Owner

@YUSHACOD commented on GitHub (Mar 26, 2023):

Oh, I can't thank you enough. It works perfectly now. Just setting the cursorColor did the trick.

@YUSHACOD commented on GitHub (Mar 26, 2023): Oh, I can't thank you enough. It works perfectly now. Just setting the cursorColor did the trick.
Author
Owner

@zadjii-msft commented on GitHub (Mar 27, 2023):

I'm gonna call this a /dupe of #9610, yea? basically, there is an undocumented way to get cursor inverting, but we still need to spec up the right way to definitely support it.

@zadjii-msft commented on GitHub (Mar 27, 2023): I'm gonna call this a /dupe of #9610, yea? basically, there is an undocumented way to get cursor inverting, but we still need to spec up the right way to definitely support it.
Author
Owner

@microsoft-github-policy-service[bot] commented on GitHub (Mar 27, 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 (Mar 27, 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#19567