Lines Matching refs:tty_in
176 static FILE *tty_in, *tty_out; variable
335 noecho_fgets(result, maxsize, tty_in); in read_string_inner()
339 p = fgets(result, maxsize, tty_in); in read_string_inner()
342 if (feof(tty_in)) in read_string_inner()
344 if (ferror(tty_in)) in read_string_inner()
349 } else if (!read_till_nl(tty_in)) in read_string_inner()
380 tty_in = stdin; in open_console()
387 tty_in = stdin; in open_console()
390 if ((tty_in = fopen("conin$", "r")) == NULL) in open_console()
391 tty_in = stdin; in open_console()
399 if ((tty_in = fopen(DEV_TTY, "r")) == NULL) in open_console()
400 tty_in = stdin; in open_console()
406 if (TTY_get(fileno(tty_in), &tty_orig) == -1) { in open_console()
493 if (is_a_tty && (TTY_set(fileno(tty_in), &tty_new) == -1)) in noecho_console()
525 if (is_a_tty && (TTY_set(fileno(tty_in), &tty_new) == -1)) in echo_console()
554 if (tty_in != stdin) in close_console()
555 fclose(tty_in); in close_console()