Skip to content

Commit

Permalink
patch 8.1.0129: still some xterm-like terminals get a stray "p"
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
brammool committed Jun 30, 2018
1 parent 304925e commit 668324e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/term.c
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -4690,6 +4690,11 @@ check_termcode(
&& STRNCMP(tp + extra - 2, "0;115;0c", 8) == 0) && STRNCMP(tp + extra - 2, "0;115;0c", 8) == 0)
is_not_xterm = TRUE; 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 /* Only request the cursor style if t_SH and t_RS are
* set. Only supported properly by xterm since version * set. Only supported properly by xterm since version
* 279 (otherwise it returns 0x18). * 279 (otherwise it returns 0x18).
Expand Down
2 changes: 2 additions & 0 deletions src/version.c
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -789,6 +789,8 @@ static char *(features[]) =


static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
129,
/**/ /**/
127, 127,
/**/ /**/
Expand Down

0 comments on commit 668324e

Please sign in to comment.