Mercurial > vim
comparison src/term.c @ 12295:270256b6d0b8 v8.0.1027
patch 8.0.1027: more terminals can't handle requesting cursor mode
commit https://github.com/vim/vim/commit/2db0ec4b2ec405aca4e642e0420ce703f94914a8
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Aug 31 20:17:59 2017 +0200
patch 8.0.1027: more terminals can't handle requesting cursor mode
Problem: More terminals can't handle requesting cursor mode.
Solution: Recognize Putty. (Hirohito Higashi) Also include Xfce in the
version check. (Dominique Pelle) Recognize Konsole.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Thu, 31 Aug 2017 20:30:04 +0200 |
parents | decfedf9138d |
children | 50b0b3aaa545 |
comparison
equal
deleted
inserted
replaced
12294:19d0c366d1ee | 12295:270256b6d0b8 |
---|---|
4560 /* Mac Terminal.app sends 1;95;0 */ | 4560 /* Mac Terminal.app sends 1;95;0 */ |
4561 if (col == 95 | 4561 if (col == 95 |
4562 && STRNCMP(tp + extra - 2, "1;95;0c", 7) == 0) | 4562 && STRNCMP(tp + extra - 2, "1;95;0c", 7) == 0) |
4563 is_not_xterm = TRUE; | 4563 is_not_xterm = TRUE; |
4564 # endif | 4564 # endif |
4565 /* Gnome Terminal.app sends 1;3801;0 or 1;4402;0, | 4565 /* Gnome terminal sends 1;3801;0 or 1;4402;0. |
4566 * assuming any version number over 3000 is not an | 4566 * xfce4-terminal sends 1;2802;0. |
4567 * Assuming any version number over 2800 is not an | |
4567 * xterm. */ | 4568 * xterm. */ |
4568 if (col >= 3000) | 4569 if (col >= 2800) |
4570 is_not_xterm = TRUE; | |
4571 | |
4572 /* PuTTY sends 0;136;0 */ | |
4573 if (col == 136 | |
4574 && STRNCMP(tp + extra - 2, "0;136;0c", 8) == 0) | |
4575 is_not_xterm = TRUE; | |
4576 | |
4577 /* Konsole sends 0;115;0 */ | |
4578 if (col == 115 | |
4579 && STRNCMP(tp + extra - 2, "0;115;0c", 8) == 0) | |
4569 is_not_xterm = TRUE; | 4580 is_not_xterm = TRUE; |
4570 | 4581 |
4571 /* Only request the cursor style if t_SH and t_RS are | 4582 /* Only request the cursor style if t_SH and t_RS are |
4572 * set. Not for Terminal.app, it can't handle t_RS, it | 4583 * set. Not for Terminal.app, it can't handle t_RS, it |
4573 * echoes the characters to the screen. */ | 4584 * echoes the characters to the screen. */ |