From d027a414d5ff257b52c613284673933077a53cfa Mon Sep 17 00:00:00 2001 From: Russtopia <2966177+Russtopia@users.noreply.github.com> Date: Thu, 24 Feb 2022 03:17:59 -0800 Subject: [PATCH] Ensure console mouse events are turned off on exit (#82) Co-authored-by: Russ Magee --- tui_main.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tui_main.c b/tui_main.c index 51e6f25..8848ff3 100644 --- a/tui_main.c +++ b/tui_main.c @@ -3855,6 +3855,9 @@ quit: qnav_deinit(); if (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 endwin(); ged_deinit(&t.ged);