Gabirel / Hack-SpaceVim

🚀 Tell you how to hack SpaceVim. Be useful. Try Discussions!
MIT License
475 stars 68 forks source link

True Color #7

Open Gabirel opened 7 years ago

Gabirel commented 7 years ago

What is true color?

Why SpaceVim choose to use true colors by default?

Come from: https://github.com/Gabirel/Hack-SpaceVim/issues/4#issuecomment-293269621

Gabirel commented 7 years ago

What does the terminal looks like without true color support?

ture-color-failure

ture-color-failure-2

Here's the test script: https://raw.githubusercontent.com/Gabirel/toolkit-src/master/color_test/test_24bit.sh

What does the result if the terminal supports true color?

image

What should I do if my terminal has no true color support?

A: Use another one

Gabirel commented 7 years ago

For windows user:

xshell doesn't support true colors.

@fcying has already requested this feature. xshell maybe support true color in the future version,

Solution

If you really want to use SpaceVim in xshell, please use SpaceVim in tmux in your xshell.

Note: tmux version >= 2.3

Gabirel commented 7 years ago

For MacOS users:

Please use item2 instead of iterm

ourml commented 7 years ago

image

Gabirel commented 7 years ago

@ourml Please give more information about this error, such as how to execute it or something

ourml commented 7 years ago

capture

when I click Enter, it shows lots of code like the that picture

Gabirel commented 7 years ago

@ourml You could try bash test_24bit.sh instead of ./test_24bit.sh if your OS is Ubuntu or Debian. Let me know if it works

ourml commented 7 years ago

it's the same problem

ourml commented 7 years ago

my OS is Unbuntu Server, and it's running on virtual environment(The software 'VMware Workstation'), is that related to it?

Gabirel commented 7 years ago

No, I don't think so. I guess your shell is zsh. However, zsh works for me though.

image

One thing needs to pay attention is that Ubuntu's shell uses dash as default. This could result in this kind of error. It's weird if you use bash to execute it.

Also, if you make sure your terminal doesn't support true color, just skip the tests.

ourml commented 7 years ago

Yes, you are right, my shell is zsh, I try it agin

Gabirel commented 7 years ago

Or, can you just go into bash and then execute it again?

Just make sure you don't use dash.

ourml commented 7 years ago

I tried, but it's the same, even use the root to execute

Gabirel commented 7 years ago

This problem has been fixed.

I will update the latest version of test script to make sure that everyone could use it without any errors.

ourml commented 7 years ago

Thanks