Skip to content
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 MinGW terminal freezes bash for a short time. #20877

Closed
1 of 7 tasks
coderextreme opened this issue May 11, 2024 · 4 comments
Closed
1 of 7 tasks

Typing ESC in MinGW terminal freezes bash for a short time. #20877

coderextreme opened this issue May 11, 2024 · 4 comments
Labels

Comments

@coderextreme
Copy link

coderextreme commented May 11, 2024

Description / Steps to reproduce the issue

microsoft/terminal#17249

Expected behavior

Typing ESC should erase the command previously typed, similar to Command Prompt or PowerShell.

Actual behavior

ESC freezes the terminal, and keystrokes cannot be typed for a short time

Verification

Windows Version

MINGW64_NT-10.0-19045

MINGW environments affected

  • MINGW64
  • MINGW32
  • UCRT64
  • CLANG64
  • CLANG32
  • CLANGARM64

Are you willing to submit a PR?

not right now

@coderextreme
Copy link
Author

Upgrading, pacman -Suy twice solved my issue.

@coderextreme
Copy link
Author

Well, apparently, the ESC at the beginning of a command is OK. Now I type several spaces, the ESC while testing, and then the shell freezes. This is OK behavior if you need to handle ESC for escape terminal sequences. I do know that many terminal sequences can probably be typed at the command, line. It would be nice to have ESC cancel the command previously typed, like PowerShell and CommandPrompt, but there's probably some reason why you haven't implemented that. Or at least, wipe out spaces previously typed.

@coderextreme coderextreme reopened this May 11, 2024
@coderextreme
Copy link
Author

coderextreme commented May 12, 2024

Well, the bug is back now!

Again, it could be in a variety of places, Windows Terminal, Git for Windows, or Git Bash. As far as I know, my Msys2 MINGW x64 is working

@coderextreme
Copy link
Author

Also, my msys msys terminal is working okay. So, this only seems to be a problem under MINGW64/WindowsTerminal/GitBash. There's no problem with MINGW64/Msys2 or WSL2 Ubuntu 24, except for slow input response. I don't type very fast.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant