Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Some colors not rendering properly in bash on windows?

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):

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:

screenshot of what colortest-256 should look like

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?

like image 581
Andi Gu Avatar asked Aug 12 '16 18:08

Andi Gu


People also ask

How do I change the default color of the Ubuntu Bash?

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.

Does Windows 11 have a color rendering problem?

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.

Can I change the default theme of the Bash shell?

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.

How will the windows 11 bug affect color management?

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.


1 Answers

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

like image 55
onoma Avatar answered Nov 16 '22 04:11

onoma