-
-
Notifications
You must be signed in to change notification settings - Fork 266
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Vim colors rendered incorrectly with TERM=xterm-kitty #231
Comments
@rnevius how did you get it to run at all on kitty with kitty 0.17 i get
|
@sbeckeriv Have you set up terminfo for Kitty? What is the output of |
@rnevius I have not! it is blank. I will look in to that. Thanks. |
asciinema 2.1 removed dependency on |
Are you able to show the screenshots of the correct and incorrect vim colors you observe when recording with asciinema? |
Here's an example cast with wrong colors in Vim |
@sickill please, take a look at the above cast |
I closed because of no response for over a year. But yeah, your example @EgZvor shows something is off indeed. Thanks. |
You might want to check out this thread vim/vim#11716 and this advice from Kovid https://sw.kovidgoyal.net/kitty/faq/#using-a-color-theme-with-a-background-color-does-not-work-well-in-vim (which I applied and is what breaks the highlighting in asciinema). |
Thanks for the context. This actually explains a lot. I suspect the use of non-standard |
Note that colon is standard, from ECMA-48. semi-colon is non-standard but more common, IIRC konsole first started erroneously using semi-colon and it spread from there. Most modern terminal emulators support both forms. You should too. To be didactic, the reason colon is used is because it encodes sub-parts of a single specification. SGR escape codes can actually contain multiple semi-colon separated parts (though this is rarely used in practice). In the presence of multiple parts separating sub-parts with semi-colons is ambiguous. Therefore, colons should always be used for sub-parts. |
Yeah, that makes a lot of sense. Thanks. We'll need to implement support for it in https://github.com/asciinema/avt |
This has been fixed in 3.8.0 - https://github.com/asciinema/asciinema-player/releases/tag/v3.8.0 |
As above. Colors render correctly when manually setting
TERM=xterm-256color
, but incorrectly withTERM=xterm-kitty
.Kitty is a popular terminal emulator.
The text was updated successfully, but these errors were encountered: