Home | History | Annotate | Download | only in cups

Lines Matching refs:tty

582   HANDLE		tty;		/* Console handle */
596 if ((tty = GetStdHandle(STD_INPUT_HANDLE)) == INVALID_HANDLE_VALUE)
599 if (!GetConsoleMode(tty, &mode))
602 if (!SetConsoleMode(tty, 0))
613 * Read the password string from /dev/tty until we get interrupted or get a
620 while (ReadFile(tty, &passch, 1, &passbytes, NULL))
688 SetConsoleMode(tty, mode);
706 int tty; /* /dev/tty - never read from stdin */
721 if ((tty = open("/dev/tty", O_RDONLY)) < 0)
724 if (tcgetattr(tty, &original))
726 close(tty);
735 if (tcsetattr(tty, TCSAFLUSH, &noecho))
737 close(tty);
749 * Read the password string from /dev/tty until we get interrupted or get a
756 while ((passbytes = read(tty, &passch, 1)) == 1)
830 tcsetattr(tty, TCSAFLUSH, &original);
831 close(tty);