aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
authorKalle Wallin <kaw@linux.se>2004-07-12 20:40:02 +0000
committerKalle Wallin <kaw@linux.se>2004-07-12 20:40:02 +0000
commita054f129e4e4eb6baac21c192c1cf49bd6343fc4 (patch)
treeedf3028d5879245d44acb2b337194c5e4e3e58ea /src/main.c
parent0884f031a5487e0976dac558bf8ab5b21295b2d8 (diff)
downloadmpd-a054f129e4e4eb6baac21c192c1cf49bd6343fc4.tar.gz
mpd-a054f129e4e4eb6baac21c192c1cf49bd6343fc4.tar.xz
mpd-a054f129e4e4eb6baac21c192c1cf49bd6343fc4.zip
Support SIGSTOP, SIGCONT in raw mode
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@1858 09075e82-0dd4-0310-85a5-a0d7c8717e4f
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