0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 12:02:23 +02:00

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.
This commit is contained in:
Rudolf Polzer 2014-11-13 12:02:29 +01:00
parent 09e08bfe2e
commit a09f7a371e

View File

@ -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;
}