Eugeny / tabby

A terminal for a more modern age
https://tabby.sh
MIT License
58.28k stars 3.36k forks source link

Greenish colors in WSL2 Ubuntu #6184

Open tangenti opened 2 years ago

tangenti commented 2 years ago

Describe the problem: Color schemes not working correctly in WSL2 Ubuntu. Everything is kind of greenish and certainly does not match the color scheme preview in the settings.

image

To Reproduce: Windows Version: Windows 11 21H2 22000.61 Linux Version: Linux TANGENT 5.10.16.3-microsoft-standard-WSL2 #1 SMP Fri Apr 2 22:23:49 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux Tabby Version: Alpha 174

Attempts

None of these worked.

Eugeny commented 2 years ago

No LS_COLORS can cause this sort of permission highlighting, is your ls an alias to something else?

tangenti commented 2 years ago

Thanks for the quick reply! Yes, it's an alias to exa. The default ls output looks like this: image

As you may notice in the problem description, the output of echo is greenish as well :(

Eugeny commented 2 years ago

Is it also green with --color=never? Does your color theme use green for white by any chance? You can print a color table with msgcat --color=test (needs gettext-tools)

tangenti commented 2 years ago

Yes, it's still green with --color=never. I tried many different color schemes and got the same result. The output that saved by the plugin shows that the unescaped output is green as well:

➜  ;36;96m~ ;32mecho;32;92m hello
hello
➜  ;36;96m~ ;32;92m

Reinstalling zsh, oh-my-zsh or Tabby itself does not solve the issue. Colors work correctly in Ubuntu and Windows Terminal.

Output of the tests:

image