akermu / emacs-libvterm

Emacs libvterm integration
GNU General Public License v3.0
1.72k stars 137 forks source link

Normal and bright colours are switched #721

Open acid-bong opened 5 months ago

acid-bong commented 5 months ago

Expected behaviour (st terminal with Gruvbox colours): изображение

Actual behaviour (vterm with doom-gruvbox theme): изображение

This is not unique to doom-themes and also happens with other themes that set ansi-color-... (like the builtin tango-dark). None of the tested themes explicitly customizes vterm-color-....

Doesn't happen in term, eshell and eat.

Emacs version: 29.3 Vterm version: df057b1

WhoisDonlee commented 4 months ago

Same problem here. It happens since e96c53f5035c841b20937b65142498bd8e161a40.

Before this commit:

ELISP> (vterm--get-color 1)
"#e45649"
ELISP> (vterm--get-color 9)
"#ea8076"

After this commit:

ELISP> (vterm--get-color 1)
"#ea8076"
ELISP> (vterm--get-color 9)
"#e86f64"

In both cases my ansi-color-red and ansi-color-bright-red are set to "#e45649" and "#ea8076" I'm not sure where the new red comes from.