aboutsummaryrefslogtreecommitdiffstats
path: root/src/wreadln.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/wreadln.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/wreadln.c')
-rw-r--r--src/wreadln.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/wreadln.c b/src/wreadln.c
index 3ebba7f2a..d0204329e 100644
--- a/src/wreadln.c
+++ b/src/wreadln.c
@@ -44,6 +44,7 @@ wrln_gcmp_pre_cb_t wrln_pre_completion_callback = NULL;
wrln_gcmp_post_cb_t wrln_post_completion_callback = NULL;
extern void screen_bell(void);
+extern void sigstop(void);
char *
wreadln(WINDOW *w,
@@ -169,6 +170,11 @@ wreadln(WINDOW *w,
case ERR: /* ingnore errors */
break;
+#ifdef ENABLE_RAW_MODE
+ case 26:
+ sigstop();
+ break;
+#endif
case KEY_RESIZE:
/* a resize event -> call an external callback function */
if( wrln_resize_callback )