diff options
author | Bram Moolenaar <Bram@vim.org> | 2018-06-30 17:09:26 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2018-06-30 17:09:26 +0200 |
commit | 668324ef4fd59980dc57b2eefe57eddc57c7b920 (patch) | |
tree | 351867a588f4b3a98b44e9ab966b3d9ae54c87a5 | |
parent | 304925e75031751fc87b51e387eb079bf3ae2066 (diff) | |
download | vim-668324ef4fd59980dc57b2eefe57eddc57c7b920.zip |
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)
-rw-r--r-- | src/term.c | 5 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/src/term.c b/src/term.c index 4bb8030cb..80834ce61 100644 --- 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). diff --git a/src/version.c b/src/version.c index 72e85473c..f4399cc5c 100644 --- a/src/version.c +++ b/src/version.c @@ -790,6 +790,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 129, +/**/ 127, /**/ 126, |