summaryrefslogtreecommitdiff
path: root/src/term.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/term.c')
-rw-r--r--src/term.c5
1 files changed, 5 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).