catppuccin/emacs

bluebanged by using Emacs on the tty

Opened this issue · 7 comments

What happened?

When using Emacs on non-GUI mode, it doesn't set the color for the background correctly and it sets the background to a blue color.
Bluebanged
This only happens on the TTY (I had to use fbcat and some NetPBM viewer to capture this..)

Huh this is really odd, can you give information about the enviroment your running this in?

I was running this on NixOS 24.05 with emacsPackages.catppuccin using the emacs-unstable package on emacs-overlay, and I was using the Frappé palette. I think thats about as much as I can get into without pointing out stuff that is irrelevant to the issue.

jtbx commented

I can reproduce this, I'll look into it later

I had the same issue with Windows Terminal: turned out it was by default using only 256 colors... Switching to 24 bits colors as described here microsoft/terminal#6087 fixed the issue.

So this might just be related to using just 256 colors instead of the full 24 bits range.

jtbx commented

Hmm alright, I think it might be related to the function catppuccin-quantize-color

Great explanation of the mechanics: https://chadaustin.me/2024/01/truecolor-terminal-emacs/ Probably the dark violet background of catppuccin get translated to dark blue rather than black in 256 colors.

Interesting, I might have been using a 16 bit color TTY since for me it appeared to be light blue...