aboutsummaryrefslogtreecommitdiffstats
path: root/src/command.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/command.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 '')
-rw-r--r--src/command.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/command.c b/src/command.c
index 1d77d0d2d..6cf3bf172 100644
--- a/src/command.c
+++ b/src/command.c
@@ -24,6 +24,7 @@
#include <string.h>
#include <ctype.h>
#include <glib.h>
+#include <signal.h>
#include <ncurses.h>
#include "config.h"
@@ -391,12 +392,17 @@ get_keyboard_command_with_timeout(int ms)
if( key==KEY_RESIZE )
screen_resize();
+#ifdef ENABLE_RAW_MODE
+ if( key==KEY_SIGSTOP )
+ sigstop();
+#endif
+
if( key==ERR )
return CMD_NONE;
#ifdef HAVE_GETMOUSE
- if( key==KEY_MOUSE )
- return CMD_MOUSE_EVENT;
+ // if( key==KEY_MOUSE )
+ // return CMD_MOUSE_EVENT;
#endif
return get_key_command(key);