Browse Source

Cleanup

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

3
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);
if (has_mouse()) {
// some sequence to hopefully make terminal report mouse movement events. // some sequence to hopefully make terminal report mouse movement events.
// 'REPORT_MOUSE_POSITION' alone in the mousemask doesn't seem to work, at // 'REPORT_MOUSE_POSITION' alone in the mousemask doesn't seem to work, at
// least not for xterm. // least not for xterm.
printf("\033[?1003h\n"); printf("\033[?1003h\n");
// use printf("\033[?1003l\n"); to disable
// no waiting for distinguishing click from press // no waiting for distinguishing click from press
mouseinterval(0); mouseinterval(0);
}
WINDOW* cont_win = NULL; WINDOW* cont_win = NULL;
int key = KEY_RESIZE; int key = KEY_RESIZE;

Loading…
Cancel
Save