Restore terminal before switching from alternate screen

This commit is contained in:
SolitudeSF 2021-06-18 08:22:51 +03:00
parent 8fdda6d980
commit 9fff572aab
No known key found for this signature in database
GPG Key ID: 789B06817C385387

View File

@ -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);