mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-10-18 23:38:42 +00:00
Merge pull request #8033 from qlyoung/fix-gnu-readline-bracketed-paste
vtysh: disable bracketed paste in readline
This commit is contained in:
commit
de6223a98d
@ -4001,10 +4001,16 @@ static char *vtysh_completion_entry_function(const char *ignore,
|
||||
void vtysh_readline_init(void)
|
||||
{
|
||||
/* readline related settings. */
|
||||
char *disable_bracketed_paste =
|
||||
XSTRDUP(MTYPE_TMP, "set enable-bracketed-paste off");
|
||||
|
||||
rl_initialize();
|
||||
rl_parse_and_bind(disable_bracketed_paste);
|
||||
rl_bind_key('?', (rl_command_func_t *)vtysh_rl_describe);
|
||||
rl_completion_entry_function = vtysh_completion_entry_function;
|
||||
rl_attempted_completion_function = new_completion;
|
||||
|
||||
XFREE(MTYPE_TMP, disable_bracketed_paste);
|
||||
}
|
||||
|
||||
char *vtysh_prompt(void)
|
||||
|
Loading…
Reference in New Issue
Block a user