diff src/term.c @ 14224:85e0442b7a04 v8.1.0129

patch 8.1.0129: still some xterm-like terminals get a stray "p" commit https://github.com/vim/vim/commit/668324ef4fd59980dc57b2eefe57eddc57c7b920 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Jun 30 17:09:26 2018 +0200 patch 8.1.0129: still some xterm-like terminals get a stray "p" Problem: Still some xterm-like terminals get a stray "p" on startup. Solution: Consider all terminals that reply with a version smaller than 95 as not an xterm. (James McCoy)
author Christian Brabandt <cb@256bit.org>
date Sat, 30 Jun 2018 17:15:05 +0200
parents 5d6e8dedfc73
children b557af8dedab
line wrap: on
line diff
--- a/src/term.c
+++ b/src/term.c
@@ -4690,6 +4690,11 @@ check_termcode(
 				&& STRNCMP(tp + extra - 2, "0;115;0c", 8) == 0)
 			    is_not_xterm = TRUE;
 
+			// Xterm first responded to this request at patch level
+			// 95, so assume anything below 95 is not xterm.
+			if (version < 95)
+			    is_not_xterm = TRUE;
+
 			/* Only request the cursor style if t_SH and t_RS are
 			 * set. Only supported properly by xterm since version
 			 * 279 (otherwise it returns 0x18).