Block or underline cursor setting #301

Closed
opened 2026-01-30 21:48:21 +00:00 by claunia · 8 comments
Owner

Originally created by @mriffey on GitHub (Jun 7, 2018).

I dont see a block cursor style setting in the code, nor have numerous experiments with HKCU/Console/CursorType resulted in regaining a cursor.

I am on preview 17682 prerelease 180525 and havent found a way to have an underline or block cursor.

VER: [Version 10.0.17682.1000]

Thanks, Mark

Originally created by @mriffey on GitHub (Jun 7, 2018). I dont see a block cursor style setting in the code, nor have numerous experiments with HKCU/Console/CursorType resulted in regaining a cursor. I am on preview 17682 prerelease 180525 and havent found a way to have an underline or block cursor. VER: [Version 10.0.17682.1000] Thanks, Mark
claunia added the Product-ConhostResolution-Fix-Committed labels 2026-01-30 21:48:21 +00:00
Author
Owner

@zadjii-msft commented on GitHub (Jun 7, 2018):

How are you opening the console? Is is a shortcut, like win+x, c?

The problem here is that the CursorColor is missing from the shortcut. See #193. You should be able to restore it by setting CursorColor to 0xffffffff in the registry, though I'm not positive that will work to fix shortcuts as well.

Fix was checked in earlier today.

@zadjii-msft commented on GitHub (Jun 7, 2018): How are you opening the console? Is is a shortcut, like win+x, c? The problem here is that the CursorColor is missing from the shortcut. See #193. You should be able to restore it by setting CursorColor to 0xffffffff in the registry, though I'm not positive that will work to fix shortcuts as well. Fix was checked in earlier today.
Author
Owner

@mriffey commented on GitHub (Jun 8, 2018):

I use the console a lot, so it's pinned to the taskbar, however unpinning it and repinning it did not correct the issue. I also started it from start, typing con, then clicking the search hit - same result. I even tried starting it directly from \system32\cmd.exe, but the cursorcolor registry change didnt have an impact.

@mriffey commented on GitHub (Jun 8, 2018): I use the console a lot, so it's pinned to the taskbar, however unpinning it and repinning it did not correct the issue. I also started it from start, typing con, then clicking the search hit - same result. I even tried starting it directly from \system32\cmd.exe, but the cursorcolor registry change didnt have an impact.
Author
Owner

@mriffey commented on GitHub (Jun 8, 2018):

After reading #193, I renamed CursorColor and got my block cursor back. Thanks to the tip.

@mriffey commented on GitHub (Jun 8, 2018): After reading #193, I renamed CursorColor and got my block cursor back. Thanks to the tip.
Author
Owner

@zadjii-msft commented on GitHub (Jun 8, 2018):

Does this repro with powershell//wsl/bash/, or only cmd?

Does it repro with start cmd?

The default cursor is (CursorType, CursorColor) = (0, 0xffffffff). Did you set the registry in HKCU\Console, HKCU\Console\%SystemRoot%_system32_cmd.exe or both? Anything in the cmd.exe one will override the one in the Console root.

@zadjii-msft commented on GitHub (Jun 8, 2018): Does this repro with powershell//wsl/bash/<distro of choice>, or only cmd? Does it repro with `start cmd`? The default cursor is (CursorType, CursorColor) = (0, 0xffffffff). Did you set the registry in `HKCU\Console`, `HKCU\Console\%SystemRoot%_system32_cmd.exe` or both? Anything in the cmd.exe one will override the one in the Console root.
Author
Owner

@zadjii-msft commented on GitHub (Jun 8, 2018):

Well I'm glad that fixed it for you!

@zadjii-msft commented on GitHub (Jun 8, 2018): Well I'm glad that fixed it for you!
Author
Owner

@mriffey commented on GitHub (Jun 8, 2018):

Actually, it still doesnt work from a shortcut, but i suspect that might be related to your check-in. Works great if I start cmd.exe from system32, so ill do that until the next insider release comes out. Ive been changing cursor color under the /Console key, not under the subkeys for cmd and powershell.

@mriffey commented on GitHub (Jun 8, 2018): Actually, it still doesnt work from a shortcut, but i suspect that might be related to your check-in. Works great if I start cmd.exe from system32, so ill do that until the next insider release comes out. Ive been changing cursor color under the /Console key, not under the subkeys for cmd and powershell.
Author
Owner

@zadjii-msft commented on GitHub (Jun 8, 2018):

It'll probably be a few Insider's releases before this gets out, unfortunately. It takes a while for code we check in to bubble up through the code tree.

@zadjii-msft commented on GitHub (Jun 8, 2018): It'll probably be a few Insider's releases before this gets out, unfortunately. It takes a while for code we check in to bubble up through the code tree.
Author
Owner

@mriffey commented on GitHub (Jun 8, 2018):

Here's a screenshot of system32/cmd vs pin/shortcut and the registry setting Im using. Hope it helps. https://cl.ly/433J1j2p2E0z/[346f34fffee0a8bee7c956f46c6350ad]_Image%202018-06-08%20at%2011.19.34%20AM.png

@mriffey commented on GitHub (Jun 8, 2018): Here's a screenshot of system32/cmd vs pin/shortcut and the registry setting Im using. Hope it helps. https://cl.ly/433J1j2p2E0z/[346f34fffee0a8bee7c956f46c6350ad]_Image%202018-06-08%20at%2011.19.34%20AM.png
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#301