Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Typing ESC in GitBash/Git4Windows temporarily freezes keyboard input in that Windows Terminal tab (except for CTRL-C), Windows 10 #17249

Closed
coderextreme opened this issue May 11, 2024 · 2 comments
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

Comments

@coderextreme
Copy link

coderextreme commented May 11, 2024

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.

@coderextreme coderextreme added 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 labels May 11, 2024
@coderextreme
Copy link
Author

Upgrading, pacman -Suy solved my issue. I don't know why installing new versions of GitBash/GitForWindows did not do this.

@coderextreme
Copy link
Author

Actually, if I type several spaces, then ESC, my bash freezes. I want the behavior of Command Prompt/PowerShell, if possible.

@microsoft microsoft locked and limited conversation to collaborators May 12, 2024
@DHowett DHowett converted this issue into discussion #17252 May 12, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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
Projects
None yet
Development

No branches or pull requests

1 participant