This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
Typing ESC in GitBash/Git4Windows temporarily freezes keyboard input in that Windows Terminal tab (except for CTRL-C), Windows 10 #17249
Labels
Issue-Bug
It either shouldn't be doing this or needs an investigation.
Needs-Triage
It's a new issue that the core contributor team needs to triage at the next triage meeting
Windows Terminal version
1.19.11213.0
Windows build number
10.0.19045.0
Other Software
$ uname -a
MINGW64_NT-10.0-19045 DESKTOP-8OPL3IE 3.4.10-87d57229.x86_64 2024-02-14 20:17 UTC x86_64 Msys
$ for n in 0 1 2 3 4 5
do
echo "BASH_VERSINFO[$n] = ${BASH_VERSINFO[$n]}"
done
BASH_VERSINFO[0] = 5
BASH_VERSINFO[1] = 2
BASH_VERSINFO[2] = 26
BASH_VERSINFO[3] = 1
BASH_VERSINFO[4] = release
BASH_VERSINFO[5] = x86_64-pc-msys
Git 4 Windows 2.45.0 and lower.
Steps to reproduce
Install Git4Windows/GitBash. Type ESC (perhaps several times) at the Bash command prompt in Windows Terminal, after selecting Git Bash and then type space or another keystroke. The terminal will not respond (freeze) for a while, then continue. This also affects the MingGW app under Windows and WSLg/WSL2 under Ubuntu 24. I have not noticed it inside other console terminals or other shells, such as PowerShell or CommandPrompt.
Expected Behavior
I was expecting an immediate response after typing ESC, or the ESC key should perhaps be echoed while typing at the bash command-line. I realize that ESC may start a terminal sequence, so it may be desirable not to echo it out. I use vim a lot, so typing ESC is very common for me. I recently figured out that typing ESC at the Bash command prompt was the issue after cursing you guys for a long time. No other terminal I've used (except for MingGW today) has ever had this issue.
Actual Behavior
The terminal temporarily freezes when you type ESC. If there was a way to cancel the freeze, or unlock the terminal with another keystroke, that would be satisfactory.
Please no comments on my use of vim, it's unrelated at this point, and pointing at the user for their behavior is uncool. There's a joke about a patient visiting that doctor, complaining of a pain when the patient does something, and the doctor says: "Don't do that!" as a response. The behavior in Command Prompt or PowerShell, cancelling the spaces typed, and returning the cursor to "Home" would be satisfactory, as I usually type ESC at the start of a line.
The text was updated successfully, but these errors were encountered: