Lines Matching defs:tty
27 public HANDLE tty;
29 public int tty;
40 * Get name of tty device.
51 dev = "/dev/tty";
72 tty = CreateFile("CONIN$", GENERIC_READ | GENERIC_WRITE,
75 GetConsoleMode(tty, &console_mode);
77 SetConsoleMode(tty, ENABLE_PROCESSED_INPUT | ENABLE_MOUSE_INPUT);
87 tty = open("CON", OPEN_READ);
97 * Try /dev/tty.
103 /* The __open() system call translates "/dev/tty" to "con". */
104 tty = __open(tty_device(), OPEN_READ);
106 tty = open(tty_device(), OPEN_READ);
108 if (tty < 0)
109 tty = 2;
121 SetConsoleMode(tty, console_mode);
122 CloseHandle(tty);
137 SetConsoleMode(tty, ENABLE_PROCESSED_INPUT | ENABLE_MOUSE_INPUT);
203 result = iread(tty, &uc, sizeof(char));