diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2015-08-09 20:01:42 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2015-08-09 20:01:42 -0700 |
commit | e709c65e67f873541b958ba43e425b08f3e073e3 (patch) | |
tree | 37d7203b4f2874e41e178938f1f00917dae949c8 /termbox/termbox.c | |
parent | 6fef33fd0872ffcb5141a926d1dae5b0eded3071 (diff) | |
download | mu-e709c65e67f873541b958ba43e425b08f3e073e3.tar.gz |
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.
Diffstat (limited to 'termbox/termbox.c')
-rw-r--r-- | termbox/termbox.c | 2 |
1 files changed, 2 insertions, 0 deletions
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); |