Lines Matching defs:tty
56 FILE *tty;76 if((tty = fopen("/dev/tty", "r")) == NULL)77 tty = stdin;83 tcgetattr(fileno(tty), &t_old);86 tcsetattr(fileno(tty), TCSANOW, &t_new);91 c = getc(tty);93 if(!ferror(tty))109 tcsetattr(fileno(tty), TCSANOW, &t_old);112 if(tty != stdin)113 fclose(tty);