You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
All keyboard input is totally garbled from now on. It appears correctly when entering, but the shell seems to receive the characters I entered in some random order. This happens in any cmd.exe you launch from the current bash. Only closing bash fixes it.
This also happens from xterm.
At first I thought it is just omitting characters, but then I noticed that in subsequent tries, characters from previous commands may show up too:
Actually, I think it shouldn't even exit cmd.exe when I press Ctrl+C. I think Ctrl+C should be processed by cmd.exe as usually (just like it would when starting cmd.exe from cmd.exe in Windows, or bash from bash in Linux).
The text was updated successfully, but these errors were encountered:
CherryDT
changed the title
Exiting from cmd.exe within bash with Ctrl+C scrambles keyboard input inside any new cmd.exe instances inside the same bash
Exiting from cmd.exe within bash with Ctrl+C scrambles keyboard input inside any new cmd.exe instances launched from the same bash
Apr 27, 2017
Okay, I have figured something out. It looks like when ^C is used to interrupt the cmd.exe process, it's not killed. It's still attached to the console handles. Then, when you launch another cmd.exe, both of them are sharing the input handle, and they each only get half of the input (at random).
In this screenshot, you can see that there are two different cmd's attached, one in c:\ and the other in C:\Windows\System32
In this screenshot, you can see that there are two Windows Command Processor (cmd.exe) processes in the Ubuntu instance.
I have build 15063.138.
Steps to reproduce:
All keyboard input is totally garbled from now on. It appears correctly when entering, but the shell seems to receive the characters I entered in some random order. This happens in any cmd.exe you launch from the current bash. Only closing bash fixes it.
This also happens from xterm.
At first I thought it is just omitting characters, but then I noticed that in subsequent tries, characters from previous commands may show up too:
Actually, I think it shouldn't even exit cmd.exe when I press Ctrl+C. I think Ctrl+C should be processed by cmd.exe as usually (just like it would when starting cmd.exe from cmd.exe in Windows, or bash from bash in Linux).
The text was updated successfully, but these errors were encountered: