Check for terminal resize on SIGCONT

Fixes #423
This commit is contained in:
Maxime Coste 2015-10-08 13:24:58 +01:00
parent bb16be6cf2
commit 3098cd12f8

View File

@ -273,6 +273,7 @@ NCursesUI::NCursesUI()
enable_mouse(true); enable_mouse(true);
signal(SIGWINCH, on_term_resize); signal(SIGWINCH, on_term_resize);
signal(SIGCONT, on_term_resize);
signal(SIGINT, [](int){}); signal(SIGINT, [](int){});
check_resize(true); check_resize(true);
@ -288,6 +289,7 @@ NCursesUI::~NCursesUI()
if (changed_color) if (changed_color)
restore_colors(); restore_colors();
signal(SIGWINCH, SIG_DFL); signal(SIGWINCH, SIG_DFL);
signal(SIGCONT, SIG_DFL);
signal(SIGINT, SIG_DFL); signal(SIGINT, SIG_DFL);
} }