From 95c6e58949957595b6df2fe90e4254364650d996 Mon Sep 17 00:00:00 2001 From: mongo Date: Fri, 1 Dec 2017 13:34:10 -0300 Subject: More work on issue 213 --- src/main.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/main.c') 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."); } /** -- cgit v1.2.3