Arrow keys broken in msys2 bash programs after installing Terminal #8365

Open
opened 2026-01-31 01:27:39 +00:00 by claunia · 0 comments
Owner

Originally created by @akrieger on GitHub (May 20, 2020).

Environment

Windows build number: Microsoft Windows [Version 10.0.18363.815]
Windows Terminal version (if applicable): 1.0

Any other software? msys2 bash version 4.4.23(2)-release (x86_64-pc-msys)

Steps to reproduce

  1. Note I also did an msys upgrade, which did upgrade msys2-runtime (3.0.7-6 -> 3.1.4-2). Not sure if that triggered this or installing Windows terminal did. I cannot find a way to safely revert my msys2-runtime package to confirm.
    0a) Edit: Reverting msys2-runtime did not resolve the issue.
    0b) Edit2: The same thing happens if I run bash directly via ConEmu with -new_console:p5
  2. Install msys2
  3. Run cmd.exe
  4. Run C:\<msys2 install path>\usr\bin\bash.exe --login -i
  5. Try to use an application that responds to arrow keys like less or vim
  6. Note that the applications do not respond to arrow keys
  7. In cmd.exe settings, select 'Use legacy console'
  8. Repeat 2-4 after restarting cmd.exe, observe applications respond to arrow keys again

Expected behavior

  • less and vim and etc should respond to arrow keys (less should scroll, vim cursor should move)

Actual behavior

less, vim, etc. do not respond to arrow keys at all. bash history however does correctly respond, interestingly.

Side notes

For completeness, the full list of packages I upgraded before experiencing this issue: https://gist.github.com/akrieger/f3f7bdc38f22e663d156526ea94df839

Originally created by @akrieger on GitHub (May 20, 2020). <!-- 🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨 I ACKNOWLEDGE THE FOLLOWING BEFORE PROCEEDING: 1. If I delete this entire template and go my own path, the core team may close my issue without further explanation or engagement. 2. If I list multiple bugs/concerns in this one issue, the core team may close my issue without further explanation or engagement. 3. If I write an issue that has many duplicates, the core team may close my issue without further explanation or engagement (and without necessarily spending time to find the exact duplicate ID number). 4. If I leave the title incomplete when filing the issue, the core team may close my issue without further explanation or engagement. 5. If I file something completely blank in the body, the core team may close my issue without further explanation or engagement. All good? Then proceed! --> <!-- This bug tracker is monitored by Windows Terminal development team and other technical folks. **Important: When reporting BSODs or security issues, DO NOT attach memory dumps, logs, or traces to Github issues**. Instead, send dumps/traces to secure@microsoft.com, referencing this GitHub issue. If this is an application crash, please also provide a Feedback Hub submission link so we can find your diagnostic data on the backend. Use the category "Apps > Windows Terminal (Preview)" and choose "Share My Feedback" after submission to get the link. Please use this form and describe your issue, concisely but precisely, with as much detail as possible. --> # Environment ```none Windows build number: Microsoft Windows [Version 10.0.18363.815] Windows Terminal version (if applicable): 1.0 Any other software? msys2 bash version 4.4.23(2)-release (x86_64-pc-msys) ``` # Steps to reproduce <!-- A description of how to trigger this bug. --> 0) Note I also did an msys upgrade, which did upgrade msys2-runtime (3.0.7-6 -> 3.1.4-2). Not sure if that triggered this or installing Windows terminal did. I cannot find a way to safely revert my msys2-runtime package to confirm. 0a) Edit: Reverting msys2-runtime did not resolve the issue. 0b) Edit2: The same thing happens if I run bash directly via ConEmu with -new_console:p5 1) Install msys2 2) Run `cmd.exe` 3) Run `C:\<msys2 install path>\usr\bin\bash.exe --login -i` 4) Try to use an application that responds to arrow keys like `less` or `vim` 5) Note that the applications do not respond to arrow keys 6) In `cmd.exe` settings, select 'Use legacy console' 7) Repeat 2-4 after restarting `cmd.exe`, observe applications respond to arrow keys again # Expected behavior <!-- A description of what you're expecting, possibly containing screenshots or reference material. --> - less and vim and etc should respond to arrow keys (less should scroll, vim cursor should move) # Actual behavior <!-- What's actually happening? --> less, vim, etc. do not respond to arrow keys at all. bash history however does correctly respond, interestingly. ## Side notes For completeness, the full list of packages I upgraded before experiencing this issue: https://gist.github.com/akrieger/f3f7bdc38f22e663d156526ea94df839
claunia added the Needs-TriageNeeds-Tag-Fix labels 2026-01-31 01:27:39 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#8365