emacs icon indicating copy to clipboard operation
emacs copied to clipboard

bluebanged by using Emacs on the tty

Open amadalusia opened this issue 1 year ago • 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..)

amadalusia avatar May 30 '24 12:05 amadalusia

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

NamesCode avatar Jun 04 '24 20:06 NamesCode

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.

amadalusia avatar Jun 04 '24 23:06 amadalusia

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

jtbx avatar Aug 04 '24 07:08 jtbx

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 https://github.com/microsoft/terminal/issues/6087 fixed the issue.

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

LeoAdL avatar Aug 26 '24 15:08 LeoAdL

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

jtbx avatar Aug 26 '24 22:08 jtbx

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.

LeoAdL avatar Aug 27 '24 01:08 LeoAdL

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

amadalusia avatar Aug 27 '24 04:08 amadalusia