I have for some time been experiencing weird behavior with the colors my terminal displays. Above is a screenshot of bash (from Windows Linux Subsystem) inside of Hyper terminal. You can see that the colors start out alright, but then I get a bunch of permission issues after an ls
, and everything goes wrong. The gray background then persists indefinitely.
While I don't have a screenshot, I have witnessed the same behavior inside of Powershell within VSCode as well - so I am hesitant to call this an issue with Hyper. It seems like once an error comes through, or the shell feels the need to display a color for some reason, everything goes wild.
Additionally, I've tried with ls --color=auto
with no luck - the same results are produced.
Is anyone aware of a Windows / bash / WSL setting that will keep this from happening?
Edit: I've found that this highlight respects whatever default "Screen Background" color is set in the "Defaults" option within the Bash on Ubuntu on Windows settings pane, but only once certain commands are invoked (like in my above screenshot)? Does this make sense to someone more knowledgeable than myself?
ls
, or only in some directories?ls
listing with one file and no errors, and then say that the same thing happens, no matter what type the file is. … … … P.S. It’s common forls --color=auto
to be the default. You might want to tryls --color=none
.