Lines Matching refs:tty
101 * - master tty: ptc - major 6
102 * - slave tty: pts - major 5
136 int uv_tty_init(uv_loop_t* loop, uv_tty_t* tty, int fd, int unused) {
148 * (but obviously not /dev/tty.)
166 /* Reopen the file descriptor when it refers to a tty. This lets us put the
167 * tty in non-blocking mode without affecting other processes that share it
210 uv__stream_init(loop, (uv_stream_t*) tty, UV_TTY);
220 r = uv__stream_try_select((uv_stream_t*) tty, &fd);
225 uv__queue_remove(&tty->handle_queue);
238 uv__stream_open((uv_stream_t*) tty, fd, flags);
239 tty->mode = UV_TTY_MODE_NORMAL;
281 int uv_tty_set_mode(uv_tty_t* tty, uv_tty_mode_t mode) {
287 if (tty->mode == (int) mode)
290 fd = uv__stream_fd(tty);
291 if (tty->mode == UV_TTY_MODE_NORMAL && mode != UV_TTY_MODE_NORMAL) {
293 rc = tcgetattr(fd, &tty->orig_termios);
305 orig_termios = tty->orig_termios;
312 tmp = tty->orig_termios;
332 tty->mode = mode;
338 int uv_tty_get_winsize(uv_tty_t* tty, int* width, int* height) {
343 err = ioctl(uv__stream_fd(tty), TIOCGWINSZ, &ws);