aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 9497e3b61..19dad2987 100644
--- a/src/main.c
+++ b/src/main.c
@@ -137,7 +137,19 @@ void
catch_sigcont( int sig )
{
D("catch_sigcont()\n");
- screen_resize();
+#ifdef ENABLE_RAW_MODE
+ reset_prog_mode(); /* restore tty modes */
+ refresh();
+#endif
+ screen_resize();
+}
+
+void
+sigstop(void)
+{
+ def_prog_mode(); /* save the tty modes */
+ endwin(); /* end curses mode temporarily */
+ kill(0, SIGSTOP); /* issue SIGSTOP */
}
#ifdef DEBUG