about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--termbox/termbox.c1
-rw-r--r--termbox/x.cc11
2 files changed, 12 insertions, 0 deletions
diff --git a/termbox/termbox.c b/termbox/termbox.c
index 6bd14213..eed9681d 100644
--- a/termbox/termbox.c
+++ b/termbox/termbox.c
@@ -115,6 +115,7 @@ int tb_init(void)
   bytebuffer_puts(&output_buffer, funcs[T_ENTER_CA]);
   bytebuffer_puts(&output_buffer, funcs[T_ENTER_KEYPAD]);
   bytebuffer_puts(&output_buffer, funcs[T_HIDE_CURSOR]);
+  bytebuffer_puts(&output_buffer, funcs[T_ENTER_MOUSE]);
   send_clear();
 
   update_term_size();
diff --git a/termbox/x.cc b/termbox/x.cc
new file mode 100644
index 00000000..73373818
--- /dev/null
+++ b/termbox/x.cc
@@ -0,0 +1,11 @@
+#include<iostream>
+#include"termbox.h"
+
+int main() {
+  tb_event event;
+  tb_init();
+  tb_poll_event(&event);
+  tb_shutdown();
+  std::cerr << (int)event.type << '\n';
+  return 0;
+}