summaryrefslogtreecommitdiffstats
path: root/osdep/getch2.h
diff options
context:
space:
mode:
authorRudolf Polzer <divverent@xonotic.org>2013-01-23 15:47:49 +0100
committerRudolf Polzer <divverent@xonotic.org>2013-01-23 18:05:34 +0100
commit3b22404e07df265af221112e2970084a15766c9a (patch)
tree868869e61a17389edd435342f64fd4dca8aa0485 /osdep/getch2.h
parentd275e21d6a210064ab62e56334005c923481a6bd (diff)
downloadmpv-3b22404e07df265af221112e2970084a15766c9a.tar.bz2
mpv-3b22404e07df265af221112e2970084a15766c9a.tar.xz
mp_msg, getch2: unix tty background support
Now, when backgrounded, mpv plays and outputs messages to stdout, but statusline is not output. Background<->foreground transitions are detected by signals and polling the process groups.
Diffstat (limited to 'osdep/getch2.h')
-rw-r--r--osdep/getch2.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/osdep/getch2.h b/osdep/getch2.h
index 85899b3ce3..5a04c4228e 100644
--- a/osdep/getch2.h
+++ b/osdep/getch2.h
@@ -41,10 +41,13 @@ void get_screen_size(void);
/* Load key definitions from the TERMCAP database. 'termtype' can be NULL */
int load_termcap(char *termtype);
-/* Enable and disable STDIN line-buffering */
+/* Initialize getch2 */
void getch2_enable(void);
void getch2_disable(void);
+/* Enable and disable STDIN line-buffering */
+void getch2_poll(void);
+
/* Read a character or a special key code (see keycodes.h) */
struct mp_fifo;
bool getch2(struct mp_fifo *fifo);