summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2015-10-08 13:24:58 +0100
committerMaxime Coste <frrrwww@gmail.com>2015-10-08 13:24:58 +0100
commit3098cd12f8bf2ace612079cdee8ef58b449b64d0 (patch)
tree70465d0297a3a22660d519adbae14887b945f49c /src
parentbb16be6cf23b470ea01670d3de78531039b9d0a4 (diff)
Check for terminal resize on SIGCONT
Fixes #423
Diffstat (limited to 'src')
-rw-r--r--src/ncurses_ui.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ncurses_ui.cc b/src/ncurses_ui.cc
index 57f34278..aedcf209 100644
--- a/src/ncurses_ui.cc
+++ b/src/ncurses_ui.cc
@@ -273,6 +273,7 @@ NCursesUI::NCursesUI()
enable_mouse(true);
signal(SIGWINCH, on_term_resize);
+ signal(SIGCONT, on_term_resize);
signal(SIGINT, [](int){});
check_resize(true);
@@ -288,6 +289,7 @@ NCursesUI::~NCursesUI()
if (changed_color)
restore_colors();
signal(SIGWINCH, SIG_DFL);
+ signal(SIGCONT, SIG_DFL);
signal(SIGINT, SIG_DFL);
}