1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-04 00:33:13 +02:00

core: add support of terminal "bracketed paste mode" (task #11316)

This commit is contained in:
Sebastien Helleu
2012-03-04 10:32:55 +01:00
parent d43e9c11e5
commit 152394689a
32 changed files with 580 additions and 199 deletions
+10 -2
View File
@@ -2393,6 +2393,12 @@ COMMAND_CALLBACK(input)
gui_input_undo (buffer);
else if (string_strcasecmp (argv[1], "redo") == 0)
gui_input_redo (buffer);
else if (string_strcasecmp (argv[1], "paste_start") == 0)
gui_key_paste_bracketed_start ();
else if (string_strcasecmp (argv[1], "paste_stop") == 0)
{
/* do nothing here */
}
}
return WEECHAT_RC_OK;
@@ -5762,7 +5768,9 @@ command_init ()
" switch_active_buffer: switch to next merged buffer\n"
" switch_active_buffer_previous: switch to previous "
"merged buffer\n"
" insert: insert text in command line\n\n"
" insert: insert text in command line\n"
" paste_start: start paste (bracketed paste mode)\n"
" paste_stop: stop paste (bracketed paste mode)\n\n"
"This command is used by key bindings or plugins."),
"return|complete_next|complete_previous|search_text|"
"search_switch_case|search_previous|search_next|search_stop|"
@@ -5778,7 +5786,7 @@ command_init ()
"jump_next_visited_buffer|hotlist_clear|grab_key|"
"grab_key_command|grab_mouse|grab_mouse_area|set_unread|"
"set_unread_current_buffer|switch_active_buffer|"
"switch_active_buffer_previous|insert",
"switch_active_buffer_previous|insert|paste_start|paste_stop",
&command_input, NULL);
hook_command (NULL, "key",
N_("bind/unbind keys"),