From 9fff572aabe61d1bc4a1906de383cb94e65dfd14 Mon Sep 17 00:00:00 2001 From: SolitudeSF Date: Fri, 18 Jun 2021 08:22:51 +0300 Subject: [PATCH] Restore terminal before switching from alternate screen --- src/ncurses_ui.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ncurses_ui.cc b/src/ncurses_ui.cc index 31c5269a..fb2cb25f 100644 --- a/src/ncurses_ui.cc +++ b/src/ncurses_ui.cc @@ -362,8 +362,8 @@ NCursesUI::~NCursesUI() { enable_mouse(false); m_palette.set_change_colors(false); - endwin(); restore_terminal_mode(); + endwin(); set_signal_handler(SIGWINCH, SIG_DFL); set_signal_handler(SIGHUP, SIG_DFL); set_signal_handler(SIGTSTP, SIG_DFL);