Lines Matching refs:tty_in
282 static FILE *tty_in, *tty_out;
417 noecho_fgets(result,maxsize,tty_in);
421 p=fgets(result,maxsize,tty_in);
423 p=fgets(result,maxsize,tty_in);
427 if (feof(tty_in)) goto error;
428 if (ferror(tty_in)) goto error;
435 read_till_nl(tty_in);
464 tty_in=stdin;
472 if ((tty_in=fopen(DEV_TTY,"r")) == NULL)
473 tty_in=stdin;
479 if (TTY_get(fileno(tty_in),&tty_orig) == -1)
515 if (is_a_tty && (TTY_set(fileno(tty_in),&tty_new) == -1))
537 if (is_a_tty && (TTY_set(fileno(tty_in),&tty_new) == -1))
553 if (tty_in != stdin) fclose(tty_in);