I'm using Bash on Ubuntu on Windows. I noticed that some colors are completely wrong.
Screenshot of result of running colortest-256 (colortest package):
You can notice that in system colors, there are several missing colors, the color cubes are completely off, and the grayscale ramp only has 3 shades. This is what I found running the colortest-256 is supposed to yield:
I've set my TERM to be xterm-256 colors. I'm using a clean install (fully removed linux subsystem and deleted the lxss folder and reinstalled) - is it a problem with my installation or does it not support the colours that are missing?
To solve this problem simply open the normal bash on ubuntu on Windows then type in order: sudo vim ~/.bashrc to open the default "setting" of the ubuntu bash. press i. at the end of the file add this line alias codolor='LS_COLORS="ow=01;36;40" && export LS_COLORS' close the bash and re-open it in Visual Studio Code and then type codolor.
Windows 11 has been problematic since its release. Now, Microsoft has confirmed a new issue - after upgrading to Windows 11, you may experience color rendering problems using applications such as the Image Editor. In addition, there are other bugs in recent versions of Windows 11, which Microsoft is investigating.
Adding this line not change by default the "theme" of the bash, but you can use it only when you are using the bash on ubuntu on Windows in Code. Sorry, something went wrong.
According to Microsoft, the Windows 11 bug does not affect all applications related to color management. Microsoft expects that in the stable version of Windows 11, the color management files configured in Settings and Control Panel will work as preset.
They are already working on it.
https://wpdev.uservoice.com/forums/266908-command-prompt-console-bash-on-ubuntu-on-windo/suggestions/13350690-256-color-support
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With