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

git commands at windows command prompt corrupt key mappings for arrows #4551

Open
djgoldman opened this issue Aug 10, 2023 · 5 comments
Open

Comments

@djgoldman
Copy link

Thank you for filling out a Git bug report!
Please answer the following questions to help us understand your issue.

What did you do before the bug happened? (Steps to reproduce your issue)
git status
git pull

What did you expect to happen? (Expected behavior)
commands complete without impacting windows command history

What happened instead? (Actual behavior)
git status works normally and doesn't corrupt anything
git fetch works normally but leaves windows command history corrupt.
Up arrow gets me "^[[A" instead of the previous command.
No combination of ctrl, shift or alt modifiers make it any better.
git status works normally and corrects the issue.

What's different between what you expected and what actually happened?
Don't expect windows command prompt's command history to give garbage characters.

Anything else you want to add:
This doesn't happen immediately but does start soon after starting work.
The git fetch/git status behavior is reproducable once it starts happening.

Please review the rest of the bug report below.
You can delete any lines you don't wish to share.

[System Info]
git version:
git version 2.41.0.windows.3
cpu: x86_64
built from commit: 4a1821d
sizeof-long: 4
sizeof-size_t: 8
shell-path: /bin/sh
feature: fsmonitor--daemon
uname: Windows 10.0 19044
compiler info: gnuc: 13.1
libc info: no libc information available
$SHELL (typically, interactive shell):

[Enabled Hooks]

@dscho
Copy link
Member

dscho commented Aug 11, 2023

I cannot confirm that behavior here. The arrow keys work as expected.

@djgoldman
Copy link
Author

djgoldman commented Aug 13, 2023 via email

@mataha
Copy link

mataha commented Jul 3, 2024

Might be related to #4700 - ^[[A instead of up arrow is typically a symptom of not resetting terminal state via SetConsoleMode(), particularly lingering ENABLE_VIRTUAL_TERMINAL_PROCESSING. Executing any binary that uses the aforementioned function (even something as simple as timeout /?) should bring the console back to normal.

@dscho
Copy link
Member

dscho commented Jul 15, 2024

Might be related to #4700 - ^[[A instead of up arrow is typically a symptom of not resetting terminal state via SetConsoleMode(), particularly lingering ENABLE_VIRTUAL_TERMINAL_PROCESSING.

If so, then it might be related to #4968, too...

@djgoldman
Copy link
Author

djgoldman commented Jul 23, 2024 via email

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

No branches or pull requests

3 participants