]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.2092: cannot detect kitty foreground/background color v9.1.2092
authorMateo Gjika <104777599+mateoxh@users.noreply.github.com>
Sun, 18 Jan 2026 14:12:04 +0000 (14:12 +0000)
committerChristian Brabandt <cb@256bit.org>
Sun, 18 Jan 2026 14:12:04 +0000 (14:12 +0000)
Problem:  Cannot detect kitty foreground/background color
Solution: Update builtin termcap entries (Mateo Gjika)

closes: #19208

Signed-off-by: Mateo Gjika <104777599+mateoxh@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/term.c
src/version.c

index 503ec389557e9d882c03f5eb49d31099f1af28d6..86d570a6df04ceb908860707e9d9e5ceea2d5be3 100644 (file)
@@ -641,6 +641,12 @@ static tcap_entry_T builtin_kitty[] = {
     // have been used.
     {(int)KS_CTE,      "\033[>4;m\033[=0;1u"},
 
+    // t_RF request terminal foreground color
+    {(int)KS_RFG,      "\033]10;?\033\\"},
+
+    // t_RB request terminal background color
+    {(int)KS_RBG,      "\033]11;?\033\\"},
+
     {(int)KS_NAME,     NULL}  // end marker
 };
 
index b85579b95dfcf69a38edf43ea9a6409759393f18..fefbe783e2fd5886635c3d116e29723ace4d1e66 100644 (file)
@@ -734,6 +734,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2092,
 /**/
     2091,
 /**/