diff src/term.c @ 29869:0eab537e9ccb v9.0.0273

patch 9.0.0273: Konsole termresponse not recognized Commit: https://github.com/vim/vim/commit/d55f9ef8b2f1e9f868ed1440fe859d1b18b1cfe8 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Aug 26 12:26:07 2022 +0100 patch 9.0.0273: Konsole termresponse not recognized Problem: Konsole termresponse not recognized. Solution: Handle Konsole like libvterm, set 'ttymouse' to "sgr". (closes #10990)
author Bram Moolenaar <Bram@vim.org>
date Fri, 26 Aug 2022 13:30:03 +0200
parents 89e1d67814a9
children 1342ee83ab97
line wrap: on
line diff
--- a/src/term.c
+++ b/src/term.c
@@ -4715,7 +4715,8 @@ handle_version_response(int first, int *
 	}
 
 	// libvterm sends 0;100;0
-	if (version == 100 && arg[0] == 0 && arg[2] == 0)
+	// Konsole sends 0;115;0 and works the same way
+	if ((version == 100 || version == 115) && arg[0] == 0 && arg[2] == 0)
 	{
 	    // If run from Vim $COLORS is set to the number of
 	    // colors the terminal supports.  Otherwise assume