comparison src/os_unix.c @ 31495:a2997ac0ca2c v9.0.1080

patch 9.0.1080: the "kitty" terminfo entry is not widespread Commit: https://github.com/vim/vim/commit/afa3f1cc7258d34c32a299a3cc6aece89f67fb47 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Dec 19 18:56:48 2022 +0000 patch 9.0.1080: the "kitty" terminfo entry is not widespread Problem: The "kitty" terminfo entry is not widespread, resulting in the kitty terminal not working properly. Solution: Go back to using "xterm-kitty" and avoid the problems it causes in another way.
author Bram Moolenaar <Bram@vim.org>
date Mon, 19 Dec 2022 20:00:03 +0100
parents ff4473b3fc58
children 9dc48932db8e
comparison
equal deleted inserted replaced
31494:d51e40121919 31495:a2997ac0ca2c
2351 2351
2352 2352
2353 /* 2353 /*
2354 * Return TRUE if "name" looks like some xterm name. 2354 * Return TRUE if "name" looks like some xterm name.
2355 * This matches "xterm.*", thus "xterm-256color", "xterm-kitty", etc. 2355 * This matches "xterm.*", thus "xterm-256color", "xterm-kitty", etc.
2356 * Do not consider "xterm-kitty" an xterm, it is not fully xterm compatible,
2357 * using the "xterm-kitty" terminfo entry should work better.
2356 * Seiichi Sato mentioned that "mlterm" works like xterm. 2358 * Seiichi Sato mentioned that "mlterm" works like xterm.
2357 */ 2359 */
2358 int 2360 int
2359 vim_is_xterm(char_u *name) 2361 vim_is_xterm(char_u *name)
2360 { 2362 {
2361 if (name == NULL) 2363 if (name == NULL)
2362 return FALSE; 2364 return FALSE;
2363 return (STRNICMP(name, "xterm", 5) == 0 2365 return ((STRNICMP(name, "xterm", 5) == 0
2366 && STRNICMP(name, "xterm-kitty", 11) != 0)
2364 || STRNICMP(name, "nxterm", 6) == 0 2367 || STRNICMP(name, "nxterm", 6) == 0
2365 || STRNICMP(name, "kterm", 5) == 0 2368 || STRNICMP(name, "kterm", 5) == 0
2366 || STRNICMP(name, "mlterm", 6) == 0 2369 || STRNICMP(name, "mlterm", 6) == 0
2367 || STRNICMP(name, "rxvt", 4) == 0 2370 || STRNICMP(name, "rxvt", 4) == 0
2368 || STRNICMP(name, "screen.xterm", 12) == 0 2371 || STRNICMP(name, "screen.xterm", 12) == 0