-
Notifications
You must be signed in to change notification settings - Fork 828
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
In terminal emulators, bash fails to render correct background color #2344
Comments
I believe this is already fixed in Insider's builds - I believe it's a dupe of #1706 |
@zadjii-msft I'm afraid this issue remains, today my Windows updated to: Microsoft Windows [Version 10.0.16299.19], and I reinstalled Ubuntu using Microsoft Store. |
Hmm. That's certainly weird. @Elderry Can you open a powershell window, and post a screenshot of the colors tab of the property sheet? |
@zadjii-msft Here it is: |
@Elderry Okay, this is gonna sound crazy, but what happens if you switch the first and last values of the color table in the Powershell properties dialog, and instead choose the first color (now white) as your "Screen Background" and the last (now black) as the "Screen Text", then open a new vscode? |
@zadjii-msft I did as you say, nothing changes: |
Okay shoot. I was hoping that might help. Can you try pasting this file into a file called |
@zadjii-msft Seems it is an upstream issue caused by winpty referred here. |
Oh, that's not the issue I was mostly concerned about. I was more concerned about the white and black entries in the first 8 colors printed are reversed in VScode from what you'd expect. I think I have an idea of how this happened. If you look in the registry, under I think VSCode is using the console defaults, not the properties. So because your default color selection is Color00 (dark_black) text on Color15 (bright_white) background, and VScode changes 00->white and 15-> black, your "default" colors in vscode are white on black, even if the rest of the background is white. If you really want black text on white for all of your terminals, then I'd just replicate VSCode's behavior in your defaults manually, and switch the first and last entries of the "Defaults" in the console settings. |
@zadjii-msft You are right, my Now my problem is why vscode choose to changes 00->white and 15->black, even Intellij IDEA's integrated terminal does the same. |
This issue was moved to microsoft/terminal#88 |
My Windows build number: Microsoft Windows [Version 10.0.15063]
It seems that in many terminal emulators, after running a command that outputs colors to the terminal using bash, the background will become a strange gray or black. But the default Windows Console doesn't has this problem. Here are the examples:
Integrated Terminal of Visual Studio Code:
Integrated Terminal of Intellij IDEA:
Default Windows Console:
To provide more detail, here is my bash prompt:
The text was updated successfully, but these errors were encountered: