mawww / kakoune

mawww's experiment for a better code editor
http://kakoune.org
The Unlicense
9.87k stars 712 forks source link

[BUG] Odd colorscheme behavior on MacOS Terminal.app #5097

Closed johnnaaron closed 7 months ago

johnnaaron commented 7 months ago

Version of Kakoune

Kakoune v2023.08.05

Reproducer

  1. Fresh install of MacOS Sonoma, open Terminal.app
  2. brew install Kakoune
  3. echo $TERM to check xterm-256colors from this discussion
  4. kak
  5. :colorscheme [any theme]

Outcome

Kakoune default colorscheme

kak-mac-default-colors

Lucius colorscheme

kak-colorscheme-weirdness-lucius

Gruvbox-dark colorscheme

kak-colorscheme-weirdness-gruvbox-dark

Expectations

I'm not sure if I missed some kind of extra required configuration, but my Kakoune doesn't look like the screenshots when using the default Terminal.app using zsh.

Additional information

The issue doesn't appear to be reproducible on other terminal apps; it looks normal on iTerm2.

johnnaaron commented 7 months ago

Ah, looks like it's a common issue with Terminal.app not supporting 'true colors'. If anybody else runs into this issue, the answer appears to be either:

  1. Create/find a 3rd party xterm-256color compatible colorscheme
  2. PR a 256-color fallback for default Kakoune colorschemes
  3. Use a different terminal app