diff options
author | mongo <andmarti@gmail.com> | 2017-12-01 13:34:10 -0300 |
---|---|---|
committer | mongo <andmarti@gmail.com> | 2017-12-01 13:34:10 -0300 |
commit | 95c6e58949957595b6df2fe90e4254364650d996 (patch) | |
tree | 8676752ad2ac0f2649135c45d86a1a52b38cba1c | |
parent | 87242d8a8e4fdbd621f7dafcec5c17b4a95624b4 (diff) |
More work on issue 213
-rw-r--r-- | src/main.c | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -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."); } /** |