Lines Matching refs:tty_in
297 static FILE *tty_in, *tty_out;
434 noecho_fgets(result,maxsize,tty_in);
438 p=fgets(result,maxsize,tty_in);
440 p=fgets(result,maxsize,tty_in);
444 if (feof(tty_in)) goto error;
445 if (ferror(tty_in)) goto error;
452 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)
533 if (is_a_tty && (TTY_set(fileno(tty_in),&tty_new) == -1))
555 if (is_a_tty && (TTY_set(fileno(tty_in),&tty_new) == -1))
571 if (tty_in != stdin) fclose(tty_in);