cursor disappears after some time #233

Closed
opened 2026-01-30 21:46:23 +00:00 by claunia · 13 comments
Owner

Originally created by @mypalabok on GitHub (Apr 24, 2018).

  • Your Windows build number: Microsoft Windows [Version 10.0.16299.371]

  • What you're doing and what's happening: just using the console, doing some admin stuff then after some time i notice that the cursor can't be seen although i can still type/edit

  • What's wrong / what should be happening instead: cursor disappears. if i restart the WSL box then cursor reappears.

Originally created by @mypalabok on GitHub (Apr 24, 2018). * Your Windows build number: Microsoft Windows [Version 10.0.16299.371] * What you're doing and what's happening: just using the console, doing some admin stuff then after some time i notice that the cursor can't be seen although i can still type/edit * What's wrong / what should be happening instead: cursor disappears. if i restart the WSL box then cursor reappears.
Author
Owner

@zadjii-msft commented on GitHub (Apr 24, 2018):

I can't really do anything with this bug report. I'm going to need some sort of repro steps to be able to investigate. Is there any program you're using that you notice the behavior in specifically?

@zadjii-msft commented on GitHub (Apr 24, 2018): I can't really do anything with this bug report. I'm going to need some sort of repro steps to be able to investigate. Is there any program you're using that you notice the behavior in specifically?
Author
Owner

@mypalabok commented on GitHub (Apr 25, 2018):

i am just in the bash shell doing editing of files. the effect is random but it always happens.

@mypalabok commented on GitHub (Apr 25, 2018): i am just in the bash shell doing editing of files. the effect is random but it always happens.
Author
Owner

@mypalabok commented on GitHub (Apr 25, 2018):

hi. i finally narrowed it down and it has to do with the mail client "mutt". should i post it here or goto mutt forum?

@mypalabok commented on GitHub (Apr 25, 2018): hi. i finally narrowed it down and it has to do with the mail client "mutt". should i post it here or goto mutt forum?
Author
Owner

@zadjii-msft commented on GitHub (Apr 25, 2018):

I guess that kinda depends. Does the cursor ever disappear in another terminal? Or is this specific to running in conhost (the window that opens when you launch cmd, powershell, or wsl)?

If it's specific to conhost, then it's clearly something that we;re doing differently from linux, so I should investigate.

But if it repros in putty, or gnome-terminal or whatever linux terminal you usually use, then I'd follow up with the maintainers of mutt.

@zadjii-msft commented on GitHub (Apr 25, 2018): I guess that kinda depends. Does the cursor ever disappear in another terminal? Or is this specific to running in conhost (the window that opens when you launch cmd, powershell, or wsl)? If it's specific to conhost, then it's clearly something that we;re doing differently from linux, so I should investigate. But if it repros in putty, or gnome-terminal or whatever linux terminal you usually use, then I'd follow up with the maintainers of mutt.
Author
Owner

@parkovski commented on GitHub (Apr 27, 2018):

I’m not sure if this is the same issue, but I’ve noticed my cursor jumping to the bottom right corner of the screen sometimes, though it comes back when I start typing. Could be a combination of that plus mutt caching the cursor position and just issuing move by offset rather than full position escapes, just a guess. I’ll try to get a good repro a little later.

Edit - didn't see that build number. These are separate issues since I'm on 17655 and only see this when using WSL->NT interop and only with my PowerShell profile loaded. Hopefully I can isolate what's causing that :/.

@parkovski commented on GitHub (Apr 27, 2018): I’m not sure if this is the same issue, but I’ve noticed my cursor jumping to the bottom right corner of the screen sometimes, though it comes back when I start typing. Could be a combination of that plus mutt caching the cursor position and just issuing move by offset rather than full position escapes, just a guess. I’ll try to get a good repro a little later. Edit - didn't see that build number. These are separate issues since I'm on 17655 and only see this when using WSL->NT interop and only with my PowerShell profile loaded. Hopefully I can isolate what's causing that :/.
Author
Owner

@davidanderle commented on GitHub (Jun 4, 2018):

I have a similar issue to @mypalabok, though the cursor does not recover even after hard resetting my computer. When this happened last time, I was able to update my windows to a fast ring insider preview, which resolved the issue... Or I thought until today, when the cursor had disappeared from CMD, PowerShell, and from WLS while I was editing a file in vim. I cannot recreate the problem, since I cannot recover its normal function. All my terminals on my Windows became unusable for text editing. Any ideas what I could try to get the cursor back?

@davidanderle commented on GitHub (Jun 4, 2018): I have a similar issue to @mypalabok, though the cursor does not recover even after hard resetting my computer. When this happened last time, I was able to update my windows to a fast ring insider preview, which resolved the issue... Or I thought until today, when the cursor had disappeared from CMD, PowerShell, and from WLS while I was editing a file in vim. I cannot recreate the problem, since I cannot recover its normal function. All my terminals on my Windows became unusable for text editing. Any ideas what I could try to get the cursor back?
Author
Owner

@chris-sparks commented on GitHub (Oct 26, 2018):

FWIW I too am facing a similar issue to the OP.

The cursor blinks fine when 'idle' but as soon as you 'wake it up' it disappears and does so until x time has lapsed, at which point it returns to visible. Obviously navigating back with the arrow keys is rather difficult as there's no indication of where the cursor is located.

Occurs on the shell as well as in, say, nano/vi etc.

I have no discernible reason I can find for why and when this started to happen, perhaps a recent update, but when I first noticed it I made an assumption it was just a one off and a restart would cure it. That's not the case.

GIF attached.

cursor-woes

@chris-sparks commented on GitHub (Oct 26, 2018): FWIW I too am facing a similar issue to the OP. The cursor blinks fine when 'idle' but as soon as you 'wake it up' it disappears and does so until x time has lapsed, at which point it returns to visible. Obviously navigating back with the arrow keys is rather difficult as there's no indication of where the cursor is located. Occurs on the shell as well as in, say, nano/vi etc. I have no discernible reason I can find for why and when this started to happen, perhaps a recent update, but when I first noticed it I made an assumption it was just a one off and a restart would cure it. That's not the case. GIF attached. ![cursor-woes](https://user-images.githubusercontent.com/19639926/47540234-8f432500-d930-11e8-9c16-af4526f9f410.gif)
Author
Owner

@zadjii-msft commented on GitHub (Oct 26, 2018):

@chris-sparks That's definitely #269, which is fixed in the newest insider's builds.

@mypalabok is that the issue you were seeing? If so, I'd love to close this issue as a dupe.

@zadjii-msft commented on GitHub (Oct 26, 2018): @chris-sparks That's definitely #269, which is fixed in the newest insider's builds. @mypalabok is that the issue you were seeing? If so, I'd love to close this issue as a dupe.
Author
Owner

@chris-sparks commented on GitHub (Oct 29, 2018):

Thanks Mike!

Looks like I had a restart over the weekend which must have installed a new build and it is indeed fixed!

Appreciate the feedback.

Regards
Chris

@chris-sparks commented on GitHub (Oct 29, 2018): Thanks Mike! Looks like I had a restart over the weekend which must have installed a new build and it is indeed fixed! Appreciate the feedback. Regards Chris
Author
Owner

@miniksa commented on GitHub (May 18, 2019):

Looks like this is fixed/answered. Closing.

@miniksa commented on GitHub (May 18, 2019): Looks like this is fixed/answered. Closing.
Author
Owner

@mloskot commented on GitHub (Aug 6, 2019):

@mypalabok Did you have a chance to test the problem in other terminals?

I'm seeing the disappearing cursor while editing e-mails in Mutt + Vim under WSL, saving a draft, re-opening and the cursor is gone. I have to quit Mutt, execute reset and re-launch Mutt, then cursor is back.

I'm now trying out the Windows Terminal (Preview) Version: 0.3.2171.0 with WSL (Ubuntu 18.04) and Mutt, so far so good, cursor does not disappear.

@mloskot commented on GitHub (Aug 6, 2019): @mypalabok Did you have a chance to test the problem in other terminals? I'm seeing the disappearing cursor while editing e-mails in Mutt + Vim under WSL, saving a draft, re-opening and the cursor is gone. I have to quit Mutt, execute `reset` and re-launch Mutt, then cursor is back. I'm now trying out the `Windows Terminal (Preview) Version: 0.3.2171.0` with WSL (Ubuntu 18.04) and Mutt, so far so good, cursor does not disappear.
Author
Owner

@hi2u commented on GitHub (Jun 7, 2020):

This is a regular occurrence for me and always has been since I started using Windows Terminal earlier in the year.

It seems to happen both for local cmd.exe prompts, and also when logged into remote Linux hosts over SSH. I'm guessing it's related to ANSI escape/color codes or something like that.

I do a fair bit on Node.js programming, and it seems to be pretty common after running a Node.js program that uses ANSI escape color codes.

For the remote Linux shells over SSH, I can fix it by running the /usr/bin/reset command.

It probably happens at least 10 times a day for me. I find myself having to either run reset or close and reopen terminals quite a lot.

I thought maybe htop was one of the causes, but trying it now I can't replicate the issue consistently. But given that it also happens in cmd.exe, it seems it's not one specific Windows -or- Linux cause or program.

Running the current version: 1.0.1401.0

@hi2u commented on GitHub (Jun 7, 2020): This is a regular occurrence for me and always has been since I started using Windows Terminal earlier in the year. It seems to happen both for local cmd.exe prompts, and also when logged into remote Linux hosts over SSH. I'm guessing it's related to ANSI escape/color codes or something like that. I do a fair bit on Node.js programming, and it seems to be pretty common after running a Node.js program that uses ANSI escape color codes. For the remote Linux shells over SSH, I can fix it by running the `/usr/bin/reset` command. It probably happens at least 10 times a day for me. I find myself having to either run `reset` or close and reopen terminals quite a lot. I thought maybe `htop` was one of the causes, but trying it now I can't replicate the issue consistently. But given that it also happens in cmd.exe, it seems it's not one specific Windows -or- Linux cause or program. Running the current version: 1.0.1401.0
Author
Owner

@robinZhao commented on GitHub (Sep 1, 2020):

The problem remains in 10.0.18363.1016

@robinZhao commented on GitHub (Sep 1, 2020): The problem remains in 10.0.18363.1016 ![](https://raw.githubusercontent.com/robinZhao/images/master/issue.gif)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#233