question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't get more then handful of colors in iTerm2 (3.2.7)

See original GitHub issue

I am using iTerm 3.2.7 can display 16M color, but debug-module will display only 16 colors.

This perl script can test color support in terminal: https://github.com/robertknight/konsole/blob/master/tests/color-spaces.pl (source: https://apple.stackexchange.com/q/190167/265202)

Thank you for your help.

screen shot 2019-02-06 at 11 58 23 screen shot 2019-02-06 at 11 58 28 screen shot 2019-02-06 at 11 57 06 screen shot 2019-02-06 at 11 58 51

my debug test script:

const supportsColor = require('supports-color');

if (supportsColor.stdout) {
    console.log('Terminal stdout supports color');
}

if (supportsColor.stdout.has256) {
    console.log('Terminal stdout supports 256 colors');
}

if (supportsColor.stderr.has16m) {
    console.log('Terminal stderr supports 16 million colors (truecolor)');
}

const e1 = require('debug')('jest:1');
const e2 = require('debug')('jest:2');
const e3 = require('debug')('jest:3');
const e4 = require('debug')('jest:4');
const e5 = require('debug')('jest:5');
const e6 = require('debug')('jest:6');
const e7 = require('debug')('jest:7');
const e8 = require('debug')('jest:8');
const e9 = require('debug')('jest:9');
const e10 = require('debug')('jest:10');
const e11 = require('debug')('jest:11');
const e12 = require('debug')('jest:12');
const e13 = require('debug')('jest:13');
const e14 = require('debug')('jest:14');
const e15 = require('debug')('jest:15');
const e16 = require('debug')('jest:16');
const e17 = require('debug')('jest:17');
const e18 = require('debug')('jest:18');

e1('test');
e2('test');
e3('test');
e4('test');
e5('test');
e6('test');
e7('test');
e8('test');
e9('test');
e10('test');
e11('test');
e12('test');
e13('test');
e14('test');
e15('test');
e16('test');
e17('test');
e18('test');

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
Qix-commented, Feb 8, 2019

This is a well known problem that isn’t really an ‘issue’ per se. Pm2 would have to allocate a pseudo terminal. This is just how terminals work.

1reaction
samismcommented, Feb 7, 2019
    "debug": "^2.6.9"

Nevermind, I’m an idiot.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can't get more then handful of colors in iTerm2 (3.2.7) #682
I am using iTerm 3.2.7 can display 16M color, but debug-module will display only 16 colors. This perl script can test color support...
Read more >
Downloads - iTerm2 - macOS Terminal Replacement
iTerm2 is a replacement for Terminal and the successor to iTerm.
Read more >
Color scheme not applied in iTerm2 - Super User
I've been having the same issue and this is what seems to have solved it: In your .bash_profile set CLICOLOR before setting TERM:...
Read more >
lose vim colorscheme in tmux mode - Stack Overflow
2, iTerm2 Build 1.0.0.20130622 export TERM="xterm-256color" in .bash_profile, then set iterm to xterm-256-color worked for me. No need to set ...
Read more >
24bit color reporting in terminfo? - Google Groups
(context: iTerm 3.2.7, macOS 10.14 18A390, ncurses 6.1.20180127 via MacPorts). I've been exploring 24bit color support, and I think there's a couple places ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found