This post has been de-listed
It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.
I've been having a strange issue when using the Ubuntu on Windows bash shell in VSCode. When the terminal starts to use colors, there's a weird background color that goes on until I open up a new terminal. Image showing problem. When calling git status
if there was no changes that cause the text to go red or green for staged changes, then the text is regular white on grey, but once the status needs the red or green to show the changes, the blue background starts to appear from then on. This also happens if I have LS_COLORS turned on in my .bashrc so I have it disabled. Any idea why this is happening?
Interestingly, this also happens when using the Hyper Terminal as well. I'd appreciate any insight. I've checked over my .bashrc and .profile but there doesn't seem to be anything modifying colors.
EDIT: Using the native bash terminal does not have the same effect.
EDIT 2: It seems that the terminal for both VSCode and Hyper interpret the color code 39m 'default' as that blue color rather than actual default. By ending my PS1 with \e[37;40m
I can force the text to be white on dark background even for input. It will only break when an external program changes it back to the 39m default (such as the git output).
Post Details
- Posted
- 7 years ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/vscode/comm...