Autocompletion in git bash for windows flashes/blinks #10701

Closed
opened 2026-01-31 02:27:47 +00:00 by claunia · 5 comments
Owner

Originally created by @mlewand on GitHub (Sep 21, 2020).

Environment

Windows build number: Version 10.0.19041.508
Windows Terminal version (if applicable): 1.2.2381.0

Any other software?
Git(git for Windows): 2.28.0

Steps to reproduce

  1. Open a new git bash tab.
  2. Navigate to your windows directory.
  3. Type "cd syst".
  4. Press tab twice.

Expected behavior

Screen doesn't flash, your command is unfolded to "cd system".

Actual behavior

Screen flashes gray for a moment.

If you inspect the gif frame-by-frame it actually inverts colors, rather than make it all single color:

Interestingly it doesn't happen consistently. If I backspace it twice (so that it is "cd syst" again) and press tab, there might be no flash this time.

It's not reproducible in git bash console app itself.

It's a regression that happened over last quarter or so, but I'm surprised I didn't find any existing issue on that.

Here's how the prfilefor bash is defined:

   "profiles": [
        {
            "acrylicOpacity": 1,
            "closeOnExit": true,
            "colorScheme": "Campbell",
            "commandline": "<basePath>\\usr\\bin\\bash.exe\" -i -l",
            "cursorColor": "#FFFFFF",
            "cursorShape": "bar",
            "fontFace": "Consolas",
            "fontSize": 8,
            "guid": "{0504d9fc-deca-44e1-83c4-213dca5023e7}",
            "historySize": 9001,
            "icon": "<basePath>\\mingw64\\share\\git\\git-for-windows.ico",
            "name": "Bash",
            "padding": "0, 0, 0, 0",
            "snapOnInput": true,
            "startingDirectory": "%USERPROFILE%",
            "useAcrylic": true
        },
Originally created by @mlewand on GitHub (Sep 21, 2020). # Environment ``` Windows build number: Version 10.0.19041.508 Windows Terminal version (if applicable): 1.2.2381.0 Any other software? Git(git for Windows): 2.28.0 ``` # Steps to reproduce 1. Open a new git bash tab. 2. Navigate to your windows directory. 3. Type "cd syst". 4. Press <kbd>tab</kbd> twice. # Expected behavior Screen doesn't flash, your command is unfolded to "cd system". # Actual behavior Screen flashes gray for a moment. ![](https://user-images.githubusercontent.com/5353898/93742000-a870b100-fbed-11ea-9bb6-86833984b7ec.gif) If you inspect the gif frame-by-frame it actually inverts colors, rather than make it all single color: ![](https://user-images.githubusercontent.com/5353898/93741988-a3136680-fbed-11ea-833c-87b0a2fd1c0b.png) Interestingly it doesn't happen consistently. If I <kbd>backspace</kbd> it twice (so that it is "cd syst" again) and press tab, there might be no flash this time. It's not reproducible in git bash console app itself. It's a regression that happened over last quarter or so, but I'm surprised I didn't find any existing issue on that. Here's how the prfilefor bash is defined: ``` "profiles": [ { "acrylicOpacity": 1, "closeOnExit": true, "colorScheme": "Campbell", "commandline": "<basePath>\\usr\\bin\\bash.exe\" -i -l", "cursorColor": "#FFFFFF", "cursorShape": "bar", "fontFace": "Consolas", "fontSize": 8, "guid": "{0504d9fc-deca-44e1-83c4-213dca5023e7}", "historySize": 9001, "icon": "<basePath>\\mingw64\\share\\git\\git-for-windows.ico", "name": "Bash", "padding": "0, 0, 0, 0", "snapOnInput": true, "startingDirectory": "%USERPROFILE%", "useAcrylic": true }, ```
claunia added the Issue-QuestionNeeds-Tag-FixResolution-Answered labels 2026-01-31 02:27:47 +00:00
Author
Owner

@skyline75489 commented on GitHub (Sep 21, 2020):

It may sounds crazy but I think this is actual expected. It's a so-called "Visual Bell". Think of it as a replacement for audible bell.

@skyline75489 commented on GitHub (Sep 21, 2020): It may sounds crazy but I think this is actual expected. It's a so-called "Visual Bell". Think of it as a replacement for audible bell.
Author
Owner

@DHowett commented on GitHub (Sep 21, 2020):

Yes, this is a "visual bell". Here is a comprehensive list of ways to turn of visual bells.

@DHowett commented on GitHub (Sep 21, 2020): Yes, this is a "visual bell". [Here is a comprehensive list of ways to turn of visual bells.](https://tldp.org/HOWTO/Visual-Bell-8.html)
Author
Owner

@mlewand commented on GitHub (Sep 22, 2020):

Oh, thanks! Didn't know about that 👍

@mlewand commented on GitHub (Sep 22, 2020): Oh, thanks! Didn't know about that 👍
Author
Owner

@martins-1992 commented on GitHub (Apr 26, 2021):

Considering the fact, that this effect does not appear in git bash for Windows itself,
wouldn't it be helpful to add an FAQ to https://docs.microsoft.com/de-de/windows/terminal/tips-and-tricks or even the App itself?

@martins-1992 commented on GitHub (Apr 26, 2021): Considering the fact, that this effect does not appear in git bash for Windows itself, wouldn't it be helpful to add an FAQ to https://docs.microsoft.com/de-de/windows/terminal/tips-and-tricks or even the App itself?
Author
Owner

@DHowett commented on GitHub (Apr 26, 2021):

Considering the fact, that this effect does not appear in git bash for Windows itself,

It will on a version of Windows where the console host has the aforementioned change. Promise.

@DHowett commented on GitHub (Apr 26, 2021): > Considering the fact, that this effect does not appear in git bash for Windows itself, It will on a version of Windows where the console host has the aforementioned change. Promise.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#10701