Lines Matching refs:tty
582 HANDLE tty; /* Console handle */ in _cupsGetPassword() local
596 if ((tty = GetStdHandle(STD_INPUT_HANDLE)) == INVALID_HANDLE_VALUE) in _cupsGetPassword()
599 if (!GetConsoleMode(tty, &mode)) in _cupsGetPassword()
602 if (!SetConsoleMode(tty, 0)) in _cupsGetPassword()
620 while (ReadFile(tty, &passch, 1, &passbytes, NULL)) in _cupsGetPassword()
688 SetConsoleMode(tty, mode); in _cupsGetPassword()
706 int tty; /* /dev/tty - never read from stdin */ in _cupsGetPassword()
721 if ((tty = open("/dev/tty", O_RDONLY)) < 0) in _cupsGetPassword()
724 if (tcgetattr(tty, &original)) in _cupsGetPassword()
726 close(tty); in _cupsGetPassword()
735 if (tcsetattr(tty, TCSAFLUSH, &noecho)) in _cupsGetPassword()
737 close(tty); in _cupsGetPassword()
756 while ((passbytes = read(tty, &passch, 1)) == 1) in _cupsGetPassword()
830 tcsetattr(tty, TCSAFLUSH, &original); in _cupsGetPassword()
831 close(tty); in _cupsGetPassword()