Browse Source

Cleanup

master
cancel 7 years ago
parent
commit
a233e9b49a
  1. 15
      tui_main.c

15
tui_main.c

@ -1158,12 +1158,15 @@ int main(int argc, char** argv) {
} }
mousemask(ALL_MOUSE_EVENTS | REPORT_MOUSE_POSITION, NULL); mousemask(ALL_MOUSE_EVENTS | REPORT_MOUSE_POSITION, NULL);
// some sequence to hopefully make terminal report mouse movement events. if (has_mouse()) {
// 'REPORT_MOUSE_POSITION' alone in the mousemask doesn't seem to work, at // some sequence to hopefully make terminal report mouse movement events.
// least not for xterm. // 'REPORT_MOUSE_POSITION' alone in the mousemask doesn't seem to work, at
printf("\033[?1003h\n"); // least not for xterm.
// no waiting for distinguishing click from press printf("\033[?1003h\n");
mouseinterval(0); // use printf("\033[?1003l\n"); to disable
// no waiting for distinguishing click from press
mouseinterval(0);
}
WINDOW* cont_win = NULL; WINDOW* cont_win = NULL;
int key = KEY_RESIZE; int key = KEY_RESIZE;

Loading…
Cancel
Save