comparison runtime/doc/term.txt @ 10640:27be410d6d29 v8.0.0210

patch 8.0.0210: no support for bracketed paste commit https://github.com/vim/vim/commit/ec2da36ca48b40c0654b32a8d2c9f52e796daa5e Author: Bram Moolenaar <Bram@vim.org> Date: Sat Jan 21 20:04:22 2017 +0100 patch 8.0.0210: no support for bracketed paste Problem: Vim does not support bracketed paste, as implemented by xterm and other terminals. Solution: Add t_BE, t_BD, t_PS and t_PE.
author Christian Brabandt <cb@256bit.org>
date Sat, 21 Jan 2017 20:15:04 +0100
parents 9f48eab77d62
children 523cd59d6db0
comparison
equal deleted inserted replaced
10639:9b3141c5aa1b 10640:27be410d6d29
86 into the mode it was before Vim started. The strings defined with 't_te' and 86 into the mode it was before Vim started. The strings defined with 't_te' and
87 't_ke' will be sent to the terminal. On the Amiga, with commands that execute 87 't_ke' will be sent to the terminal. On the Amiga, with commands that execute
88 an external command (e.g., "!!"), the terminal will be put into Normal mode 88 an external command (e.g., "!!"), the terminal will be put into Normal mode
89 for a moment. This means that you can stop the output to the screen by 89 for a moment. This means that you can stop the output to the screen by
90 hitting a printing key. Output resumes when you hit <BS>. 90 hitting a printing key. Output resumes when you hit <BS>.
91
92 *xterm-bracketed-paste*
93 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
95 terminal is then expected to put 't_PS' before pasted text and 't_PE' after
96 pasted text. This way Vim can separate text that is pasted from characters
97 that are typed. The pasted text is handled like when the middle mouse button
98 is used.
99
100 Note that in some situations Vim will not recognize the bracketed paste and
101 you will get the raw text. In other situations Vim will only get the first
102 pasted character and drop the rest, e.g. when using the "r" command.
91 103
92 *cs7-problem* 104 *cs7-problem*
93 Note: If the terminal settings are changed after running Vim, you might have 105 Note: If the terminal settings are changed after running Vim, you might have
94 an illegal combination of settings. This has been reported on Solaris 2.5 106 an illegal combination of settings. This has been reported on Solaris 2.5
95 with "stty cs8 parenb", which is restored as "stty cs7 parenb". Use 107 with "stty cs8 parenb", which is restored as "stty cs7 parenb". Use
304 t_RB request terminal background color *t_RB* *'t_RB'* 316 t_RB request terminal background color *t_RB* *'t_RB'*
305 t_8f set foreground color (R, G, B) *t_8f* *'t_8f'* 317 t_8f set foreground color (R, G, B) *t_8f* *'t_8f'*
306 |xterm-true-color| 318 |xterm-true-color|
307 t_8b set background color (R, G, B) *t_8b* *'t_8b'* 319 t_8b set background color (R, G, B) *t_8b* *'t_8b'*
308 |xterm-true-color| 320 |xterm-true-color|
321 t_BE enable bracketed paste mode *t_BE* *'t_BE'*
322 |xterm-bracketed-paste|
323 t_BD disable bracketed paste mode *t_BD* *'t_BD'*
324 |xterm-bracketed-paste|
309 325
310 KEY CODES 326 KEY CODES
311 Note: Use the <> form if possible 327 Note: Use the <> form if possible
312 328
313 option name meaning ~ 329 option name meaning ~
396 t_KI <k6> keypad 6 *<k6>* *t_KI* *'t_KI'* 412 t_KI <k6> keypad 6 *<k6>* *t_KI* *'t_KI'*
397 t_KJ <k7> keypad 7 *<k7>* *t_KJ* *'t_KJ'* 413 t_KJ <k7> keypad 7 *<k7>* *t_KJ* *'t_KJ'*
398 t_KK <k8> keypad 8 *<k8>* *t_KK* *'t_KK'* 414 t_KK <k8> keypad 8 *<k8>* *t_KK* *'t_KK'*
399 t_KL <k9> keypad 9 *<k9>* *t_KL* *'t_KL'* 415 t_KL <k9> keypad 9 *<k9>* *t_KL* *'t_KL'*
400 <Mouse> leader of mouse code *<Mouse>* 416 <Mouse> leader of mouse code *<Mouse>*
417 t_PS start of brackted paste |xterm-bracketed-paste| *t_PS* 't_PS'
418 t_PE end of bracketed paste |xterm-bracketed-paste| *t_PE* 't_PE'
401 419
402 Note about t_so and t_mr: When the termcap entry "so" is not present the 420 Note about t_so and t_mr: When the termcap entry "so" is not present the
403 entry for "mr" is used. And vice versa. The same is done for "se" and "me". 421 entry for "mr" is used. And vice versa. The same is done for "se" and "me".
404 If your terminal supports both inversion and standout mode, you can see two 422 If your terminal supports both inversion and standout mode, you can see two
405 different modes. If your terminal supports only one of the modes, both will 423 different modes. If your terminal supports only one of the modes, both will