Skip to content

Commit 668324e

Browse files
committed
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)
1 parent 304925e commit 668324e

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

src/term.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4690,6 +4690,11 @@ check_termcode(
46904690
&& STRNCMP(tp + extra - 2, "0;115;0c", 8) == 0)
46914691
is_not_xterm = TRUE;
46924692

4693+
// Xterm first responded to this request at patch level
4694+
// 95, so assume anything below 95 is not xterm.
4695+
if (version < 95)
4696+
is_not_xterm = TRUE;
4697+
46934698
/* Only request the cursor style if t_SH and t_RS are
46944699
* set. Only supported properly by xterm since version
46954700
* 279 (otherwise it returns 0x18).

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -789,6 +789,8 @@ static char *(features[]) =
789789

790790
static int included_patches[] =
791791
{ /* Add new patch number below this line */
792+
/**/
793+
129,
792794
/**/
793795
127,
794796
/**/

0 commit comments

Comments
 (0)