parent
bb16be6cf2
commit
3098cd12f8
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user