Lines Matching refs:tty_in
302 static FILE *tty_in, *tty_out;
436 noecho_fgets(result, maxsize, tty_in);
439 p = fgets(result, maxsize, tty_in);
441 p = fgets(result, maxsize, tty_in);
445 if (feof(tty_in))
447 if (ferror(tty_in))
452 } else if (!read_till_nl(tty_in))
482 tty_in = stdin;
490 if ((tty_in = fopen(DEV_TTY, "r")) == NULL)
491 tty_in = stdin;
497 if (TTY_get(fileno(tty_in), &tty_orig) == -1) {
536 if (is_a_tty && (TTY_set(fileno(tty_in), &tty_new) == -1))
560 if (is_a_tty && (TTY_set(fileno(tty_in), &tty_new) == -1))
578 if (tty_in != stdin)
579 fclose(tty_in);