diff --git a/ffmpeg.c b/ffmpeg.c index 9ed40e55c8..82d9a6cbf1 100644 --- a/ffmpeg.c +++ b/ffmpeg.c @@ -3395,6 +3395,18 @@ static OutputStream *choose_output(void) return ost_min; } +static void set_tty_echo(int on) +{ +#if HAVE_TERMIOS_H + struct termios tty; + if (tcgetattr(0, &tty) == 0) { + if (on) tty.c_lflag |= ECHO; + else tty.c_lflag &= ~ECHO; + tcsetattr(0, TCSANOW, &tty); + } +#endif +} + static int check_keyboard_interaction(int64_t cur_time) { int i, ret, key; @@ -3427,10 +3439,13 @@ static int check_keyboard_interaction(int64_t cur_time) int k, n = 0; fprintf(stderr, "\nEnter command: |all