From bf5b1e9a0517b357b93ffaef7b6d96ad8b9917b0 Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 1 Aug 2014 22:57:56 +0200 Subject: Remove the last remains of slave mode Almost nothing was left of it. The only thing this commit actually removes is support for reading input commands from stdin. But you can emulate this via: --input-file=/dev/stdin --input-terminal=no However, this won't work on Windows. Just use a named pipe. --- osdep/terminal-unix.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'osdep/terminal-unix.c') diff --git a/osdep/terminal-unix.c b/osdep/terminal-unix.c index 844054e1bd..21ed42cb68 100644 --- a/osdep/terminal-unix.c +++ b/osdep/terminal-unix.c @@ -466,6 +466,7 @@ static int read_keys(void *ctx, int fd) void terminal_setup_getch(struct input_ctx *ictx) { mp_input_add_fd(ictx, 0, 1, NULL, read_keys, NULL, ictx); + getch2_enable(); } static volatile int getch2_active = 0; @@ -624,11 +625,6 @@ void terminal_set_foreground_color(FILE *stream, int c) } } -void terminal_setup_stdin_cmd_input(struct input_ctx *ictx) -{ - mp_input_add_fd(ictx, 0, 1, input_default_read_cmd, NULL, NULL, NULL); -} - int terminal_init(void) { use_terminal = isatty(1); -- cgit v1.2.3