summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormongo <andmarti@gmail.com>2017-12-01 13:34:10 -0300
committermongo <andmarti@gmail.com>2017-12-01 13:34:10 -0300
commit95c6e58949957595b6df2fe90e4254364650d996 (patch)
tree8676752ad2ac0f2649135c45d86a1a52b38cba1c
parent87242d8a8e4fdbd621f7dafcec5c17b4a95624b4 (diff)
More work on issue 213
-rw-r--r--src/main.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index cd6bbf6..2e1bb31 100644
--- a/src/main.c
+++ b/src/main.c
@@ -627,7 +627,9 @@ void nopipe() {
*/
void sig_tstp() {
- sc_debug("Got SIGTSTP.");
+ //sc_info("Got SIGTSTP.");
+ def_prog_mode();
+ endwin();
signal(SIGTSTP, SIG_DFL); /* set handler to default */
kill(getpid(), SIGTSTP); /* call the default handler */
}
@@ -642,7 +644,10 @@ void sig_tstp() {
void sig_cont() {
signal(SIGTSTP, sig_tstp); /* set handler back to this */
winchg();
- sc_debug("Got SIGCONT.");
+ reset_prog_mode();
+ refresh();
+ ui_update(TRUE);
+ //sc_info("Got SIGCONT.");
}
/**