In step 4 we see that xterm-kitty does not define bce in its terminfo. Now try this with a terminfo that does define bce such as TERM=xterm and you once again find t_ut=y showing that vim is ignoring the terminfo database when setting t_ut
This causes rendering artifacts in kitty when using color schemes that define a background color, reference: https://sw.kovidgoyal.net/kitty/faq/#using-a-color-theme-with-a-background-color-does-not-work-well-in-vim
t_ut should not be set when terminfo does not contain bce
9.0.1046
Arch Linux, kitty 0.26.5, TERM=xterm-kitty, zsh
No response
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
When $TERM is set to a value starting with "xterm" then vim assumes the terminal is xterm-compatible.
If it is not, then set $TERM to another value. This has a long history, many users depend on it.
Try setting $TERM to "kitty", at least my system has a terminfo entry for it.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
Should be fixed by patch 9.0.1073
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
Closed #11716 as completed.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
kitty: 0.21.2
vim --clean
E558: Terminal entry not found in terminfo
'kitty' not known. Available builtin terminals are:
builtin_ansi
builtin_vt320
builtin_vt52
builtin_xterm
builtin_iris-ansi
builtin_pcansi
builtin_win32
builtin_amiga
builtin_dumb
builtin_debug
defaulting to 'ansi'
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
"kitty" is not a valid TERM for kitty, always use "xterm-kitty"
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
v9.0.1073 removed the xterm- prefix.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
Yeah that will break lots of things in lots of places. There is no kitty
terminfo. It's just a made up one added by Dickey to some version of
ncurses that doesn't even track the actual kitty terminfo. Not to
mention it wont be available on remote machines when using the ssh
kitten since it only installs xterm-kitty.
The correct solution is to hardcode the value of t_ut alone for
xterm-kitty.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
Oh and just for posterity, there is not a single terminal emulator that depends on vim hardcoding a terminfo definition for xterm*. vim could just use the actual terminfo that came with the TERM variable and all those terminal emulators would work just fine. Indeed the whole purpose of terminfo is to provide a database of terminal properties precisely so applications dont have to hardcode them.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
I suggest you revert 9.0.1073 unless you want to get a flood of bug reports. Even colorschemes that use rgb colors look wrong with that patch.
I am perfectly fine with you not fixing this bug. I filed it in a moment of unfounded optimism. I will just continue to direct vim users that experience it to the FAQ which has been around for years.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
I am proposing you revert 9.0.1073 for the moment. If I have some time in the future I will put together a PR for you.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()