Searched refs:new_termios (Results 1 – 2 of 2) sorted by relevance
395 struct termios old_termios, new_termios; in ask_password_tty() local462 new_termios = old_termios; in ask_password_tty()463 new_termios.c_lflag &= ~(ICANON|ECHO); in ask_password_tty()464 new_termios.c_cc[VMIN] = 1; in ask_password_tty()465 new_termios.c_cc[VTIME] = 0; in ask_password_tty()467 if (tcsetattr(ttyfd, TCSADRAIN, &new_termios) < 0) { in ask_password_tty()
94 struct termios new_termios = old_termios; in read_one_char() local96 new_termios.c_lflag &= ~ICANON; in read_one_char()97 new_termios.c_cc[VMIN] = 1; in read_one_char()98 new_termios.c_cc[VTIME] = 0; in read_one_char()100 if (tcsetattr(fd, TCSADRAIN, &new_termios) >= 0) { in read_one_char()