summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRudolf Polzer <divVerent@xonotic.org>2014-11-13 12:02:29 +0100
committerRudolf Polzer <divVerent@xonotic.org>2014-11-13 12:25:43 +0100
commita09f7a371e1e7cdaf03bfe1d5df43d2fabdf5fdf (patch)
tree97b53c505607afd71358753f9ae1adafd9ddd025
parent09e08bfe2e1502c4772c94080b49ddf30a27fd69 (diff)
downloadmpv-a09f7a371e1e7cdaf03bfe1d5df43d2fabdf5fdf.tar.bz2
mpv-a09f7a371e1e7cdaf03bfe1d5df43d2fabdf5fdf.tar.xz
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.
-rw-r--r--osdep/terminal-unix.c2
1 files changed, 1 insertions, 1 deletions
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;
}