|
1 |
| -*term.txt* For Vim version 8.2. Last change: 2020 Apr 12 |
| 1 | +*term.txt* For Vim version 8.2. Last change: 2021 Jan 14 |
2 | 2 |
|
3 | 3 |
|
4 | 4 | VIM REFERENCE MANUAL by Bram Moolenaar
|
@@ -217,6 +217,10 @@ it's different from Alt). They can be combined. Examples: >
|
217 | 217 | Another speciality about these codes is that they are not overwritten by
|
218 | 218 | another code. That is to avoid that the codes obtained from xterm directly
|
219 | 219 | |t_RV| overwrite them.
|
| 220 | + |
| 221 | +Another special value is a termcap entry ending in "@;*X". This is for cursor |
| 222 | +keys, which either use "CSI X" or "CSI 1 ; modifier X". Thus the "@" |
| 223 | +stands for either "1" if a modifier follows, or nothing. |
220 | 224 | *xterm-scroll-region*
|
221 | 225 | The default termcap entry for xterm on Sun and other platforms does not
|
222 | 226 | contain the entry for scroll regions. Add ":cs=\E[%i%d;%dr:" to the xterm
|
@@ -369,6 +373,10 @@ Added by Vim (there are no standard codes for these):
|
369 | 373 | t_Ri restore icon text from stack *t_Ri* *'t_Ri'*
|
370 | 374 | t_TE end of "raw" mode *t_TE* *'t_TE'*
|
371 | 375 | t_TI put terminal into "raw" mode *t_TI* *'t_TI'*
|
| 376 | + t_fd disable focus-event tracking *t_fd* *'t_fd'* |
| 377 | + |xterm-focus-event| |
| 378 | + t_fe enable focus-event tracking *t_fe* *'t_fe'* |
| 379 | + |xterm-focus-event| |
372 | 380 |
|
373 | 381 | Some codes have a start, middle and end part. The start and end are defined
|
374 | 382 | by the termcap option, the middle part is text.
|
@@ -542,6 +550,16 @@ And run "xrdb -merge .Xresources" to make it effective. You can check the
|
542 | 550 | value with the context menu (right mouse button while CTRL key is pressed),
|
543 | 551 | there should be a tick at allow-window-ops.
|
544 | 552 |
|
| 553 | + *xterm-focus-event* |
| 554 | +Some terminals including xterm support the focus event tracking feature. |
| 555 | +If this feature is enabled by the 't_fe' sequence, special key sequences are |
| 556 | +sent from the terminal to Vim every time the terminal gains or loses focus. |
| 557 | +Vim fires focus events (|FocusGained|/|FocusLost|) by handling them accordingly. |
| 558 | +Focus event tracking is disabled by a 't_fd' sequence when exiting "raw" mode. |
| 559 | +If you would like to disable this feature, add the following to your .vimrc: |
| 560 | + `set t_fd=` |
| 561 | + `set t_fe=` |
| 562 | + |
545 | 563 | *termcap-colors*
|
546 | 564 | Note about colors: The 't_Co' option tells Vim the number of colors available.
|
547 | 565 | When it is non-zero, the 't_AB' and 't_AF' options are used to set the color.
|
|
0 commit comments