comparison runtime/doc/term.txt @ 18299:a9cf41bcb5d6 v8.1.2144

patch 8.1.2144: side effects when using t_ti to enable modifyOtherKeys Commit: https://github.com/vim/vim/commit/171a921b51101c1261040d28a8147c8829b675d3 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Oct 12 21:08:59 2019 +0200 patch 8.1.2144: side effects when using t_ti to enable modifyOtherKeys Problem: Side effects when using t_ti to enable modifyOtherKeys. Solution: Add t_TI and t_TE.
author Bram Moolenaar <Bram@vim.org>
date Sat, 12 Oct 2019 21:15:04 +0200
parents 1eaf34420bb3
children d7619a9874cd
comparison
equal deleted inserted replaced
18298:319c64023a01 18299:a9cf41bcb5d6
1 *term.txt* For Vim version 8.1. Last change: 2019 May 07 1 *term.txt* For Vim version 8.1. Last change: 2019 Oct 12
2 2
3 3
4 VIM REFERENCE MANUAL by Bram Moolenaar 4 VIM REFERENCE MANUAL by Bram Moolenaar
5 5
6 6
78 ... vt100, vt102 maps and settings ... 78 ... vt100, vt102 maps and settings ...
79 endif 79 endif
80 < 80 <
81 *raw-terminal-mode* 81 *raw-terminal-mode*
82 For normal editing the terminal will be put into "raw" mode. The strings 82 For normal editing the terminal will be put into "raw" mode. The strings
83 defined with 't_ti' and 't_ks' will be sent to the terminal. Normally this 83 defined with 't_ti', 't_TI' and 't_ks' will be sent to the terminal. Normally
84 puts the terminal in a state where the termcap codes are valid and activates 84 this puts the terminal in a state where the termcap codes are valid and
85 the cursor and function keys. When Vim exits the terminal will be put back 85 activates the cursor and function keys.
86 into the mode it was before Vim started. The strings defined with 't_te' and 86 When Vim exits the terminal will be put back into the mode it was before Vim
87 't_ke' will be sent to the terminal. On the Amiga, with commands that execute 87 started. The strings defined with 't_te', 't_TE' and 't_ke' will be sent to
88 an external command (e.g., "!!"), the terminal will be put into Normal mode 88 the terminal. On the Amiga, with commands that execute an external command
89 for a moment. This means that you can stop the output to the screen by 89 (e.g., "!!"), the terminal will be put into Normal mode for a moment. This
90 hitting a printing key. Output resumes when you hit <BS>. 90 means that you can stop the output to the screen by hitting a printing key.
91 Output resumes when you hit <BS>.
92
93 Note: When 't_ti' is not empty, Vim assumes that it causes switching to the
94 alternate screen. This may slightly change what happens when executing a
95 shell command or exiting Vim. To avoid this use 't_TI' and 't_TE'.
91 96
92 *xterm-bracketed-paste* 97 *xterm-bracketed-paste*
93 When the 't_BE' option is set then 't_BE' will be sent to the 98 When the 't_BE' option is set then 't_BE' will be sent to the
94 terminal when entering "raw" mode and 't_BD' when leaving "raw" mode. The 99 terminal when entering "raw" mode and 't_BD' when leaving "raw" mode. The
95 terminal is then expected to put 't_PS' before pasted text and 't_PE' after 100 terminal is then expected to put 't_PS' before pasted text and 't_PE' after
295 t_Sb set background color *t_Sb* *'t_Sb'* 300 t_Sb set background color *t_Sb* *'t_Sb'*
296 t_Sf set foreground color *t_Sf* *'t_Sf'* 301 t_Sf set foreground color *t_Sf* *'t_Sf'*
297 t_se standout end *t_se* *'t_se'* 302 t_se standout end *t_se* *'t_se'*
298 t_so standout mode *t_so* *'t_so'* 303 t_so standout mode *t_so* *'t_so'*
299 t_sr scroll reverse (backward) *t_sr* *'t_sr'* 304 t_sr scroll reverse (backward) *t_sr* *'t_sr'*
300 t_te out of "termcap" mode *t_te* *'t_te'* 305 t_te end of "termcap" mode *t_te* *'t_te'*
301 t_ti put terminal in "termcap" mode *t_ti* *'t_ti'* 306 t_ti put terminal into "termcap" mode *t_ti* *'t_ti'*
302 t_ts set window title start (to status line) *t_ts* *'t_ts'* 307 t_ts set window title start (to status line) *t_ts* *'t_ts'*
303 t_ue underline end *t_ue* *'t_ue'* 308 t_ue underline end *t_ue* *'t_ue'*
304 t_us underline mode *t_us* *'t_us'* 309 t_us underline mode *t_us* *'t_us'*
305 t_ut clearing uses the current background color *t_ut* *'t_ut'* 310 t_ut clearing uses the current background color *t_ut* *'t_ut'*
306 t_vb visual bell *t_vb* *'t_vb'* 311 t_vb visual bell *t_vb* *'t_vb'*
357 The response is stored in |v:termstyleresp| 362 The response is stored in |v:termstyleresp|
358 t_ST save window title to stack *t_ST* *'t_ST'* 363 t_ST save window title to stack *t_ST* *'t_ST'*
359 t_RT restore window title from stack *t_RT* *'t_RT'* 364 t_RT restore window title from stack *t_RT* *'t_RT'*
360 t_Si save icon text to stack *t_Si* *'t_Si'* 365 t_Si save icon text to stack *t_Si* *'t_Si'*
361 t_Ri restore icon text from stack *t_Ri* *'t_Ri'* 366 t_Ri restore icon text from stack *t_Ri* *'t_Ri'*
367 t_TE end of "raw" mode *t_TE* *'t_TE'*
368 t_TI put terminal into "raw" mode *t_TI* *'t_TI'*
362 369
363 Some codes have a start, middle and end part. The start and end are defined 370 Some codes have a start, middle and end part. The start and end are defined
364 by the termcap option, the middle part is text. 371 by the termcap option, the middle part is text.
365 set title text: t_ts {title text} t_fs 372 set title text: t_ts {title text} t_fs
366 set icon text: t_IS {icon text} t_IE 373 set icon text: t_IS {icon text} t_IE