diff options
author | Rudolf Polzer <divVerent@xonotic.org> | 2014-11-13 12:02:29 +0100 |
---|---|---|
committer | Rudolf Polzer <divVerent@xonotic.org> | 2014-11-13 12:25:43 +0100 |
commit | a09f7a371e1e7cdaf03bfe1d5df43d2fabdf5fdf (patch) | |
tree | 97b53c505607afd71358753f9ae1adafd9ddd025 /osdep/terminal-unix.c | |
parent | 09e08bfe2e1502c4772c94080b49ddf30a27fd69 (diff) | |
download | mpv-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.
Diffstat (limited to 'osdep/terminal-unix.c')
-rw-r--r-- | osdep/terminal-unix.c | 2 |
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; } |