MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / set_tty_echo

Function set_tty_echo

fftools/ffmpeg.c:810–820  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

808}
809
810static void set_tty_echo(int on)
811{
812#if HAVE_TERMIOS_H
813 struct termios tty;
814 if (tcgetattr(0, &tty) == 0) {
815 if (on) tty.c_lflag |= ECHO;
816 else tty.c_lflag &= ~ECHO;
817 tcsetattr(0, TCSANOW, &tty);
818 }
819#endif
820}
821
822static int check_keyboard_interaction(int64_t cur_time)
823{

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected