[WSL] Console output disappears after editting a file in Vim #502

Closed
opened 2026-01-30 21:53:51 +00:00 by claunia · 2 comments
Owner

Originally created by @nernst on GitHub (Jan 3, 2019).

  • Your Windows build number: (Type ver at a Windows Command Prompt)
    Version 10.0.18305.1003

  • What you're doing and what's happening: (Copy & paste specific commands and their output, or include screen shots)
    When using Bash on Windows (WSL) with Ubuntu 18.04, sporadically when exiting Vim on a remote host via ssh, the console stops rendering new text. It doesn't happen all of the time, and it seems that re-entering vim, then exiting immediately solves the problem; no need to close & restart the shell.

What I've seen is that the cursor appears to be in the correct place, and it blinks as usual. The cursor moves in response to key presses. Key presses are sent, as when I'm in this state, I can type 'vim' and vim properly starts and renders. While I'm in vim, everything works as expected. When I exit vim (for the second time), it usually resets and the console works properly again.

  • What's wrong / what should be happening instead:
    I would expect that after quitting Vim, that the console would behave as normal. i.e. key presses are properly echo'd, the prompt is rendered, etc.
Originally created by @nernst on GitHub (Jan 3, 2019). * Your Windows build number: (Type `ver` at a Windows Command Prompt) Version 10.0.18305.1003 * What you're doing and what's happening: (Copy & paste specific commands and their output, or include screen shots) When using Bash on Windows (WSL) with Ubuntu 18.04, sporadically when exiting Vim on a remote host via ssh, the console stops rendering new text. It doesn't happen all of the time, and it seems that re-entering vim, then exiting immediately solves the problem; no need to close & restart the shell. What I've seen is that the cursor appears to be in the correct place, and it blinks as usual. The cursor moves in response to key presses. Key presses are sent, as when I'm in this state, I can type 'vim' and vim properly starts and renders. While I'm in vim, everything works as expected. When I exit vim (for the second time), it usually resets and the console works properly again. * What's wrong / what should be happening instead: I would expect that after quitting Vim, that the console would behave as normal. i.e. key presses are properly echo'd, the prompt is rendered, etc.
claunia added the Resolution-Duplicate label 2026-01-30 21:53:51 +00:00
Author
Owner

@DHowett-MSFT commented on GitHub (Jan 3, 2019):

This looks like it might be #325.

@DHowett-MSFT commented on GitHub (Jan 3, 2019): This looks like it might be #325.
Author
Owner

@nernst commented on GitHub (Jan 3, 2019):

Agreed. I did look through open issues, but didn't see anything that matched. This is likely a duplicate.

@nernst commented on GitHub (Jan 3, 2019): Agreed. I did look through open issues, but didn't see anything that matched. This is likely a duplicate.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#502