Lines Matching refs:tty
27 public int tty;
45 tty = (int) CreateFile("CONIN$", GENERIC_READ,
48 GetConsoleMode((HANDLE)tty, &console_mode);
50 SetConsoleMode((HANDLE)tty, ENABLE_PROCESSED_INPUT);
60 tty = open("CON", OPEN_READ);
70 * Try /dev/tty.
76 /* The __open() system call translates "/dev/tty" to "con". */
77 tty = __open("/dev/tty", OPEN_READ);
79 tty = open("/dev/tty", OPEN_READ);
81 if (tty < 0)
82 tty = 2;
94 SetConsoleMode((HANDLE)tty, console_mode);
95 CloseHandle((HANDLE)tty);
132 c = WIN32getch(tty);
140 result = iread(tty, &c, sizeof(char));