From e709c65e67f873541b958ba43e425b08f3e073e3 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Sun, 9 Aug 2015 20:01:42 -0700 Subject: 1964 - don't mess up paste It took me a long time to fix termbox because the escape codes it was seeing seemed all wrong. Had to stop calling tb_shutdown/printf and put in the extra 3 lines to log to a file. Then everything cleared up. Weird. --- termbox/termbox.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'termbox/termbox.c') diff --git a/termbox/termbox.c b/termbox/termbox.c index 0092abd1..d8cc4514 100644 --- a/termbox/termbox.c +++ b/termbox/termbox.c @@ -116,6 +116,7 @@ int tb_init(void) bytebuffer_puts(&output_buffer, funcs[T_ENTER_KEYPAD]); bytebuffer_puts(&output_buffer, funcs[T_HIDE_CURSOR]); bytebuffer_puts(&output_buffer, funcs[T_ENTER_MOUSE]); + bytebuffer_puts(&output_buffer, funcs[T_ENTER_BRACKETED_PASTE]); send_clear(); update_term_size(); @@ -137,6 +138,7 @@ void tb_shutdown(void) bytebuffer_puts(&output_buffer, funcs[T_EXIT_CA]); bytebuffer_puts(&output_buffer, funcs[T_EXIT_KEYPAD]); bytebuffer_puts(&output_buffer, funcs[T_EXIT_MOUSE]); + bytebuffer_puts(&output_buffer, funcs[T_EXIT_BRACKETED_PASTE]); bytebuffer_flush(&output_buffer, inout); tcsetattr(inout, TCSAFLUSH, &orig_tios); -- cgit 1.4.1-2-gfad0