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
support undercurls for TERM=kitty (and TERM=xterm-kitty) #11973
Comments
I can confirm it's package under the kitty name with ncurses |
package? Do you mean fail? I don't have a patch. The above mentioned patch does not work (this was also a wild guess, I grepped the source for "kitty", I don't know anything about the code base). |
Haven't investigated, but JFI: kitty itself $TERMINFO when installing it manually, and Arch Linux ships xterm-kitty in the kitty-terminfo package. |
..it likely boils down to "kitty" in ncurses being different from "xterm-kitty" from Kitty itself? |
Yes, exactly that. The
Yes, that is also mentioned in the kitty bug (see first post). In short: Kitty provides its own terminfo package and recommends it. However, on machines that you ssh into from a kitty terminal that don't have this extra terminfo package installed your terminal is broken. Therefore a (correct) entry in the ncurses database would be better. |
nvim --version
: 0.4.3vim -u DEFAULTS
(version: ) behaves differently? unknown, not relevant$TERM
: This is the source of the problem: "kitty" or "xterm-kitty"Actual behaviour
When using Kitty as terminal, it has the extra feature of curly underlines. This is supported in neovim (#7479, #9052).
For terminal, it is benefitial that their terminfo files are in the ncurses database. This is the case for kitty, too. Ncurses includes kitty since quite a time but not as "xterm-kitty" but only as "kitty" (kitty bug, ncurses file). I have ncurses 6.1 from 2019.06.09 (gentoo package), that includes this file.
When I now switch from "xterm-kitty" the "kitty" as TERM variable the undercurls are gone, but replaced by underlines.
Expected behaviour
The undercurls are shown, regardless whether TERM is "kitty" or "xterm-kitty".
Addtional info
I tried to patch neovim:
However, this does not seem to affect the undercurl problem.
The text was updated successfully, but these errors were encountered: