Lines Matching refs:tty
26 public int tty;
42 tty = (int) CreateFile("CONIN$", GENERIC_READ,
45 GetConsoleMode((HANDLE)tty, &console_mode);
47 SetConsoleMode((HANDLE)tty, ENABLE_PROCESSED_INPUT);
57 tty = open("CON", OPEN_READ);
67 * Try /dev/tty.
73 /* The __open() system call translates "/dev/tty" to "con". */
74 tty = __open("/dev/tty", OPEN_READ);
76 tty = open("/dev/tty", OPEN_READ);
78 if (tty < 0)
79 tty = 2;
91 SetConsoleMode((HANDLE)tty, console_mode);
92 CloseHandle((HANDLE)tty);
115 c = WIN32getch(tty);
123 result = iread(tty, &c, sizeof(char));