Giter Site home page Giter Site logo

Comments (4)

ofseed avatar ofseed commented on June 1, 2024

Different terminals support different numbers of colors displayed. Many new colorscheme, such as Catppuccin need 256 color support, it looks like the macOS default terminal does not support it, at least not enabled by default.

from nvim.

fangying avatar fangying commented on June 1, 2024

Different terminals support different numbers of colors displayed. Many new colorscheme, such as Catppuccin need 256 color support, it looks like the macOS default terminal does not support it, at least not enabled by default.

The default MacOS terminal.app does not enable 256 colors by default, however i have enabled the "xterm-256color" by
setting it in terminal.app setting field, which is
image

And also "export TERM=xterm-256color" is exported to system environment variable.
But the terminal.app still looks quite strange if this nvim config is used.

from nvim.

ofseed avatar ofseed commented on June 1, 2024

I almost got it wrong, Catppuccin needs 24-bit true color rather than 256-color. The format of 24-bit color is just like #FFFFFF, which you can see in the source code of Catppuccin and many neovim-only colorschemes.

The number of the 24-bit color is 4096, much more than 256. The default terminal of macOS doesn't support true color, and I even heard that it doesn't support 256-color perfectly.

To many traditional terminals, like macOS default, even if they supported true color, they usually have a slower speed. I recommend WezTerm, Alacritty, or Kitty instead, they all are modern terminals that support 24-colors and have a faster speed by using GPU acceleration.

from nvim.

fangying avatar fangying commented on June 1, 2024

I almost got it wrong, Catppuccin needs 24-bit true color rather than 256-color. The format of 24-bit color is just like #FFFFFF, which you can see in the source code of Catppuccin and many neovim-only colorschemes.

The number of the 24-bit color is 4096, much more than 256. The default terminal of macOS doesn't support true color, and I even heard that it doesn't support 256-color perfectly.

To many traditional terminals, like macOS default, even if they supported true color, they usually have a slower speed. I recommend WezTerm, Alacritty, or Kitty instead, they all are modern terminals that support 24-colors and have a faster speed by using GPU acceleration.

Thanks.
Now it is figured out. Maybe it's time for me to switch from the MacOS default terminal which does not support true color to some modern terminal apps as suggested here.

from nvim.

Related Issues (6)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.