chalk/supports-color

My terminal emulator (mobaxterm) supports truecolor, but supports-color doesn't detect it #147

macau23 posted onGitHub

How can I give you the information you need so that supports-color can correctly identify mobaxterm as supporting trucolor?

Related to https://github.com/dominikwilkowski/cfonts/issues/68

Currently I am working around it with COLORTERM=truecolor


You must find out whether it exposes any environment variable we can use to detect such color support, or at minimum, we need an environment variable with the name of the terminal.

posted by sindresorhus almost 2 years ago

I can see no environment variable that exposes anything unique about my terminal emulator. Is there another way to detect it?

posted by macau23 almost 2 years ago

Unfortunately not. Maybe supply the value of TERM?

The only workarounds otherwise are:

  1. Continue setting COLORTERM in your shelll profile
  2. Open a ticket with the emulator author(s) asking to expose some emulator-specific variable we can switch on.

Beyond that unfortunately TTYs are so archaic that there's not much else we can do :/

posted by Qix- almost 2 years ago

TERM is not mobaxterm, but xterm :(

I will use COLORTERM. Thanks!

posted by macau23 almost 2 years ago

Fund this Issue

$0.00
Funded

Pull requests