Mercurial > vim
comparison src/term.c @ 14282:89dcceaa5c22 v8.1.0157
patch 8.1.0157: old iTerm2 is not recognized, resulting in stray output
commit https://github.com/vim/vim/commit/e330ef42f256e60017e5f8bf4be79a5308fe9e2f
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Jul 6 23:11:40 2018 +0200
patch 8.1.0157: old iTerm2 is not recognized, resulting in stray output
Problem: Old iTerm2 is not recognized, resulting in stray output.
Solution: Recognize the termresponse.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Fri, 06 Jul 2018 23:15:06 +0200 |
parents | b557af8dedab |
children | 6bcac243b9de |
comparison
equal
deleted
inserted
replaced
14281:d0b15c8ccb59 | 14282:89dcceaa5c22 |
---|---|
4657 # endif | 4657 # endif |
4658 } | 4658 } |
4659 | 4659 |
4660 if (version == 95) | 4660 if (version == 95) |
4661 { | 4661 { |
4662 /* Mac Terminal.app sends 1;95;0 */ | 4662 // Mac Terminal.app sends 1;95;0 |
4663 if (STRNCMP(tp + extra - 2, "1;95;0c", 7) == 0) | 4663 if (STRNCMP(tp + extra - 2, "1;95;0c", 7) == 0) |
4664 { | 4664 { |
4665 is_not_xterm = TRUE; | 4665 is_not_xterm = TRUE; |
4666 is_mac_terminal = TRUE; | 4666 is_mac_terminal = TRUE; |
4667 } | 4667 } |
4668 # ifdef FEAT_MOUSE_SGR | 4668 # ifdef FEAT_MOUSE_SGR |
4669 /* iTerm2 sends 0;95;0 */ | 4669 // iTerm2 sends 0;95;0 |
4670 if (STRNCMP(tp + extra - 2, "0;95;0c", 7) == 0) | 4670 if (STRNCMP(tp + extra - 2, "0;95;0c", 7) == 0) |
4671 is_iterm2 = TRUE; | 4671 is_iterm2 = TRUE; |
4672 # endif | 4672 else |
4673 # endif | |
4674 // old iTerm2 sends 0;95; | |
4675 if (STRNCMP(tp + extra - 2, "0;95;c", 6) == 0) | |
4676 is_not_xterm = TRUE; | |
4673 } | 4677 } |
4674 | 4678 |
4675 /* Only set 'ttymouse' automatically if it was not set | 4679 /* Only set 'ttymouse' automatically if it was not set |
4676 * by the user already. */ | 4680 * by the user already. */ |
4677 if (!option_was_set((char_u *)"ttym")) | 4681 if (!option_was_set((char_u *)"ttym")) |