Browse Source

Ensure console mouse events are turned off on exit (#82)

Co-authored-by: Russ Magee <rmagee+simplyembedded@gmail.com>
master
Russtopia 3 years ago
committed by GitHub
parent
commit
d027a414d5
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      tui_main.c

3
tui_main.c

@ -3855,6 +3855,9 @@ quit:
qnav_deinit(); qnav_deinit();
if (cont_window) if (cont_window)
delwin(cont_window); delwin(cont_window);
#ifndef FEAT_NOMOUSE
printf("\033[?1003l\n"); // turn off console mouse events if they were active
#endif
printf("\033[?2004h\n"); // Tell terminal to not use bracketed paste printf("\033[?2004h\n"); // Tell terminal to not use bracketed paste
endwin(); endwin();
ged_deinit(&t.ged); ged_deinit(&t.ged);

Loading…
Cancel
Save