stayradiated/terminal.sexy

Wrong colors for iTerm2

Closed this issue · 2 comments

When you export a profile for iTerm2 the colors are different. terminal.sexy creates a profile specifying colors in sRGB however they are interpreted by iTerm as generic RGB.

For example with the dawn color scheme:
BG in sRGB is #181b20 or 24,27,32.
1

In iTerm it seems correct but when you look with the color meter you can see it's different.
2

If you click on the little cog you see it's #181B20 but in generic RGB, so it's actually #20242B or 32,36,43 in sRGB.
3

I exported the same scheme for Sublime Text and the color are correct. I don't know if it is to blame iTerm or terminal.sexy.
Here is the generate profile and the one with correct colors:

The issue as I understand it, is that iTerm2 loads the RGB values using the Generic RGB color space.
I could not find a way to convert between sRGB and Generic RGB in the browser.

The workaround is to use the iTerm2 Nightly Build, which should support loading schemes as sRGB, and does not distort the colours.

You can read more about this at gnachman/iTerm2#149

It works fine with the nightly. Thanks.