Mercurial > vim
diff src/term.h @ 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 | 4aead6a9b7a9 |
children | 501f46f7644c |
line wrap: on
line diff
--- a/src/term.h +++ b/src/term.h @@ -89,10 +89,14 @@ enum SpecialKey KS_OP, /* original color pair */ KS_U7, /* request cursor position */ KS_8F, /* set foreground color (RGB) */ - KS_8B /* set background color (RGB) */ + KS_8B, /* set background color (RGB) */ + KS_CBE, /* enable bracketed paste mode */ + KS_CBD, /* disable bracketed paste mode */ + KS_CPS, /* start of brackted paste */ + KS_CPE /* end of brackted paste */ }; -#define KS_LAST KS_8B +#define KS_LAST KS_CPE /* * the terminal capabilities are stored in this array @@ -170,6 +174,10 @@ extern char_u *(term_strings[]); /* c #define T_U7 (term_str(KS_U7)) /* request cursor position */ #define T_8F (term_str(KS_8F)) /* set foreground color (RGB) */ #define T_8B (term_str(KS_8B)) /* set background color (RGB) */ +#define T_BE (term_str(KS_CBE)) /* enable bracketed paste mode */ +#define T_BD (term_str(KS_CBD)) /* disable bracketed paste mode */ +#define T_PS (term_str(KS_CPS)) /* start of bracketed paste */ +#define T_PE (term_str(KS_CPE)) /* end of bracketed paste */ #define TMODE_COOK 0 /* terminal mode for external cmds and Ex mode */ #define TMODE_SLEEP 1 /* terminal mode for sleeping (cooked but no echo) */