Mercurial > vim
comparison src/term.c @ 29869:0eab537e9ccb v9.0.0273
patch 9.0.0273: Konsole termresponse not recognized
Commit: https://github.com/vim/vim/commit/d55f9ef8b2f1e9f868ed1440fe859d1b18b1cfe8
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Aug 26 12:26:07 2022 +0100
patch 9.0.0273: Konsole termresponse not recognized
Problem: Konsole termresponse not recognized.
Solution: Handle Konsole like libvterm, set 'ttymouse' to "sgr".
(closes #10990)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 26 Aug 2022 13:30:03 +0200 |
parents | 89e1d67814a9 |
children | 1342ee83ab97 |
comparison
equal
deleted
inserted
replaced
29868:6ab2c61291ac | 29869:0eab537e9ccb |
---|---|
4713 need_gather = TRUE; | 4713 need_gather = TRUE; |
4714 req_codes_from_term(); | 4714 req_codes_from_term(); |
4715 } | 4715 } |
4716 | 4716 |
4717 // libvterm sends 0;100;0 | 4717 // libvterm sends 0;100;0 |
4718 if (version == 100 && arg[0] == 0 && arg[2] == 0) | 4718 // Konsole sends 0;115;0 and works the same way |
4719 if ((version == 100 || version == 115) && arg[0] == 0 && arg[2] == 0) | |
4719 { | 4720 { |
4720 // If run from Vim $COLORS is set to the number of | 4721 // If run from Vim $COLORS is set to the number of |
4721 // colors the terminal supports. Otherwise assume | 4722 // colors the terminal supports. Otherwise assume |
4722 // 256, libvterm supports even more. | 4723 // 256, libvterm supports even more. |
4723 if (mch_getenv((char_u *)"COLORS") == NULL) | 4724 if (mch_getenv((char_u *)"COLORS") == NULL) |