comparison runtime/doc/term.txt @ 26670:a77b661439f9 v8.2.3864

patch 8.2.3864: cannot disable requesting key codes from xterm Commit: https://github.com/vim/vim/commit/6f79e614b25caebd35cf0d82b6f3b7e0733849ec Author: Bram Moolenaar <Bram@vim.org> Date: Tue Dec 21 09:12:23 2021 +0000 patch 8.2.3864: cannot disable requesting key codes from xterm Problem: Cannot disable requesting key codes from xterm. Solution: Add the 'xtermcodes' option, default on.
author Bram Moolenaar <Bram@vim.org>
date Tue, 21 Dec 2021 10:15:04 +0100
parents 3a63b1e4a6f4
children f0d7cb510ce3
comparison
equal deleted inserted replaced
26669:7e4f211e0133 26670:a77b661439f9
554 an xterm with patchlevel 141 or higher, Vim uses special escape sequences to 554 an xterm with patchlevel 141 or higher, Vim uses special escape sequences to
555 request the key codes directly from the xterm. The responses are used to 555 request the key codes directly from the xterm. The responses are used to
556 adjust the various t_ codes. This avoids the problem that the xterm can 556 adjust the various t_ codes. This avoids the problem that the xterm can
557 produce different codes, depending on the mode it is in (8-bit, VT102, 557 produce different codes, depending on the mode it is in (8-bit, VT102,
558 VT220, etc.). The result is that codes like <xF1> are no longer needed. 558 VT220, etc.). The result is that codes like <xF1> are no longer needed.
559 Note: This is only done on startup. If the xterm options are changed after 559
560 Vim has started, the escape sequences may not be recognized anymore. 560 One of the codes that can change is 't_Co', the number of colors. This will
561 trigger a redraw. If this is a problem, reset the 'xtermcodes' option as
562 early as possible: >
563 set noxtermcodes
564
565 Note: Requesting the key codes is only done on startup. If the xterm options
566 are changed after Vim has started, the escape sequences may not be recognized
567 anymore.
561 568
562 *xterm-true-color* 569 *xterm-true-color*
563 Vim supports using true colors in the terminal (taken from |highlight-guifg| 570 Vim supports using true colors in the terminal (taken from |highlight-guifg|
564 and |highlight-guibg|), given that the terminal supports this. To make this 571 and |highlight-guibg|), given that the terminal supports this. To make this
565 work the 'termguicolors' option needs to be set. 572 work the 'termguicolors' option needs to be set.