-
-
Notifications
You must be signed in to change notification settings - Fork 112
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 remains enabled in WSL2 direct mode #2129
Comments
https://docs.microsoft.com/en-us/windows/console/console-virtual-terminal-sequences ESC [ ? 25 h DECTCEM Text Cursor Enable Mode Show Show the cursor interestingly, this is different from what we see in terminfo for xterm/kitty:
you have those extra
@FrankRuben originally reports:
but this is definitely not XTerm, or else we'd see so i'm wondering if
|
but even if that's the case, we're supplying the correct (documented, anyway) sequence in |
oh it appears he was using direct mode
|
hmmm. it's working in all my experiments thus far. i'll try again. |
I would completely ignore the ms-terminal terminfo entry until the WT devs update it. Sounds like they'll finally do something about allowing terminfo on Windows but they'll first need to implement |
I actually fixed this cursor issue last month. As far I can remember, the problem was that you hide the cursor before changing to the alt buffer, and switching to the alt buffer caused the Windows console to reset the cursor state (making it visible again). It should now be working correctly in the latest Windows Terminal preview, but it'll take a while before the fix is available in the conhost console. If you want to try and work around the bug, you may be able to fix it by only setting the cursor state after you've switched to the alt buffer.
@WSLUser I wasn't aware of this. Was it mentioned in one of the WT issues? |
if this is the case, it may well be fixed in the past few days due to work on #2131 (where i needed to switch into the Kitty keyboard mode only after switching to the alternate screen). i'll test today. |
I just tried with commit e1a1ac3 and it's still doesn't seem to be working on the old Windows console. Looking at the code for Line 1195 in e1a1ac3
And it only switches to the alt screen several lines later: Line 1231 in e1a1ac3
|
yep, the fix is on the |
let me see what of that branch i can merge up right now |
No problem. I just thought I'd check when I pulled the latest code. And didn't realise you were still on a branch. |
yep, much appreciated and sorry for wasting your time -- i forgot that that change had been made to deal with the kitty keyboard protocol. anyway, i'm just about ready to merge that branch (see #2139). |
Didn't mean to close this, but merged the branch, gotta test! |
I can confirm that this now works for me on the old Windows console. Edit: By "this", I mean the cursor is no longer visible in notcurses-demo. |
w00t! thanks! @FrankRuben, you ought be good to go =] thanks for the big assist, @j4james! |
See #2031 for complete background, but @FrankRuben reports that upon entering a Notcurses program in WSL2, the cursor remains visible.
The text was updated successfully, but these errors were encountered: