From a09f7a371e1e7cdaf03bfe1d5df43d2fabdf5fdf Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Thu, 13 Nov 2014 12:02:29 +0100 Subject: terminal-unix: Fix initial terminal state. When mpv is backgrounded initially (via & in the shell), do no longer change terminal settings on startup. This fixes broken local echo after launching a backgrounded mpv. --- osdep/terminal-unix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'osdep/terminal-unix.c') diff --git a/osdep/terminal-unix.c b/osdep/terminal-unix.c index fc5c8f5aaf..13a9143b51 100644 --- a/osdep/terminal-unix.c +++ b/osdep/terminal-unix.c @@ -480,7 +480,7 @@ int terminal_init(void) setsigaction(SIGTTIN, SIG_IGN, 0, true); setsigaction(SIGTTOU, SIG_IGN, 0, true); - do_activate_getch2(); + getch2_poll(); return 0; } -- cgit v1.2.3