Enable the bracketed paste mode on demand

This commit is contained in:
LemonBoy 2015-09-09 22:35:11 +02:00 committed by dequis
commit 4764b102ff
3 changed files with 13 additions and 0 deletions

View file

@ -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);
}