"Shift-Tab" and "Tab" insert the same character in MSYS2 #16773

Open
opened 2026-01-31 05:22:26 +00:00 by claunia · 0 comments
Owner

Originally created by @matteocoder on GitHub (Feb 14, 2022).

Windows Terminal version

1.12.10393.0

Windows build number

Microsoft Windows [Version 10.0.22000.493]

Other Software

GNU bash, version 4.4.23(2)-release (x86_64-pc-msys), Git for Windows 2.35.1.windows.2

Steps to reproduce

Prerequisites: install Git for Windows, then set up Git Bash in Windows Terminal as follows:

{
                "commandline": "C:\\Program Files\\Git\\bin\\bash.exe -i -l",
                "guid": "{763c51e6-3ab8-413c-b51c-2fd2abf9fba8}",
                "icon": "C:\\Program Files\\Git\\mingw64\\share\\git\\git-for-windows.ico",
                "name": "Git-Bash",
                "startingDirectory": "%USERPROFILE%",
                "tabTitle": "Git Bash"
            }

Also, make sure that ctrl-v is unbound in Windows Terminal.
Open Git Bash in Windows Terminal, then press ctrl-v, and finally shift-tab.

Expected Behavior

The escape code ^[[Z should be displayed on the screen.

Actual Behavior

Pressing shift-tab inserts a tab character anyway.

Originally created by @matteocoder on GitHub (Feb 14, 2022). ### Windows Terminal version 1.12.10393.0 ### Windows build number Microsoft Windows [Version 10.0.22000.493] ### Other Software GNU bash, version 4.4.23(2)-release (x86_64-pc-msys), Git for Windows 2.35.1.windows.2 ### Steps to reproduce Prerequisites: install Git for Windows, then set up Git Bash in Windows Terminal as follows: ``` { "commandline": "C:\\Program Files\\Git\\bin\\bash.exe -i -l", "guid": "{763c51e6-3ab8-413c-b51c-2fd2abf9fba8}", "icon": "C:\\Program Files\\Git\\mingw64\\share\\git\\git-for-windows.ico", "name": "Git-Bash", "startingDirectory": "%USERPROFILE%", "tabTitle": "Git Bash" } ``` Also, make sure that `ctrl-v` is unbound in Windows Terminal. Open Git Bash in Windows Terminal, then press `ctrl-v`, and finally `shift-tab`. ### Expected Behavior The escape code `^[[Z` should be displayed on the screen. ### Actual Behavior Pressing `shift-tab` inserts a tab character anyway.
claunia added the Issue-BugResolution-ExternalNeeds-Tag-Fix labels 2026-01-31 05:22:26 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#16773