| 808 | } |
| 809 | |
| 810 | static 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 | |
| 822 | static int check_keyboard_interaction(int64_t cur_time) |
| 823 | { |
no outgoing calls
no test coverage detected