Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cursor disappears after some time #158

Closed
mypalabok opened this issue Apr 24, 2018 · 13 comments
Closed

cursor disappears after some time #158

mypalabok opened this issue Apr 24, 2018 · 13 comments
Labels
Area-Rendering Text rendering, emoji, complex glyph & font-fallback issues Issue-Question For questions or discussion Needs-Repro We can't figure out how to make this happen. Please help find a simplified repro. Product-Conhost For issues in the Console codebase Resolution-Answered Related to questions that have been answered

Comments

@mypalabok
Copy link

  • 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.

@zadjii-msft
Copy link
Member

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 zadjii-msft added the Needs-Repro We can't figure out how to make this happen. Please help find a simplified repro. label Apr 24, 2018
@mypalabok
Copy link
Author

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

@mypalabok
Copy link
Author

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?

@zadjii-msft
Copy link
Member

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.

@parkovski
Copy link

parkovski commented 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 :/.

@davidanderle
Copy link

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?

@chris-sparks
Copy link

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

@zadjii-msft
Copy link
Member

@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.

@chris-sparks
Copy link

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

@ghost ghost added the Needs-Tag-Fix Doesn't match tag requirements label May 17, 2019
@miniksa miniksa added Area-Rendering Text rendering, emoji, complex glyph & font-fallback issues Issue-Question For questions or discussion Product-Conhost For issues in the Console codebase Resolution-Answered Related to questions that have been answered and removed Mass-Chaos labels May 17, 2019
@ghost ghost removed the Needs-Tag-Fix Doesn't match tag requirements label May 18, 2019
@miniksa
Copy link
Member

miniksa commented May 18, 2019

Looks like this is fixed/answered. Closing.

@miniksa miniksa closed this as completed May 18, 2019
@mloskot
Copy link

mloskot commented 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.

@hi2u
Copy link

hi2u commented 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

@robinZhao
Copy link

The problem remains in 10.0.18363.1016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Rendering Text rendering, emoji, complex glyph & font-fallback issues Issue-Question For questions or discussion Needs-Repro We can't figure out how to make this happen. Please help find a simplified repro. Product-Conhost For issues in the Console codebase Resolution-Answered Related to questions that have been answered
Projects
None yet
Development

No branches or pull requests

9 participants