diff options
author | LemonBoy <thatlemon@gmail.com> | 2015-09-09 22:35:11 +0200 |
---|---|---|
committer | dequis <dx@dxzone.com.ar> | 2015-09-27 16:08:06 -0300 |
commit | 4764b102ff274f4a8695ced2ff2ebb39bf8d7bc2 (patch) | |
tree | 7d422ffd49e6751edb5666d58200c365e128e56f /src/fe-text/term-terminfo.c | |
parent | 15dad291c7829c4ae7855880654b94d6edb4f17f (diff) | |
download | irssi-4764b102ff274f4a8695ced2ff2ebb39bf8d7bc2.zip |
Enable the bracketed paste mode on demand
Diffstat (limited to 'src/fe-text/term-terminfo.c')
-rw-r--r-- | src/fe-text/term-terminfo.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/fe-text/term-terminfo.c b/src/fe-text/term-terminfo.c index ded79c28..9376bda8 100644 --- a/src/fe-text/term-terminfo.c +++ b/src/fe-text/term-terminfo.c @@ -689,3 +689,11 @@ void term_gets(GArray *buffer, int *line_count) } } } + +void term_set_bracketed_paste_mode(int enable) +{ + if (enable) + tputs("\e[?2004h", 0, term_putchar); + else + tputs("\e[?2004l", 0, term_putchar); +} |