GithubHelp home page GithubHelp logo

Colors in Color Schems appear wrong. about micro HOT 2 OPEN

manngo avatar manngo commented on September 28, 2024
Colors in Color Schems appear wrong.

from micro.

Comments (2)

Andriamanitra avatar Andriamanitra commented on September 28, 2024

This is likely an issue with your terminal and/or how it is configured. If your terminal is only using 16 or 256 colors (which is often the default behavior unless the COLORTERM environment variable is set to "truecolor" even in terminals that support true color) it will just pick the "closest" one to the color you wanted.

You can find more information about how colors work in terminals and how to check if your terminal supports true color: https://github.com/termstandard/colors

from micro.

manngo avatar manngo commented on September 28, 2024

OK, I think I have worked this out. It turns out that there were two issues.

First, there is the question of colour names. Apparently, white doesn’t mean “white”. It means grey. The same goes for the other colours. Using the “bright” version of the colour names is usually closer to the true meaning of the colour, but not always. I have managed to adjust my terminal settings, but I’m aware that the ANSI standard doesn’t match my expectation. More on this here:

https://en.wikipedia.org/wiki/ANSI_escape_code#Colors

The alternative is to work purely in hex values. To make this more reliable, we need to tell Micro that we’re using true colour. I’ve add this in my .bashrc file:

export COLORTERM=truecolor
export MICRO_TRUECOLOR=1

from micro.

Related Issues (20)

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.