Lines Matching refs:tty
136 int uv_tty_init(uv_loop_t* loop, uv_tty_t* tty, int fd, int unused) { in uv_tty_init() argument
210 uv__stream_init(loop, (uv_stream_t*) tty, UV_TTY); in uv_tty_init()
220 r = uv__stream_try_select((uv_stream_t*) tty, &fd); in uv_tty_init()
225 QUEUE_REMOVE(&tty->handle_queue); in uv_tty_init()
238 uv__stream_open((uv_stream_t*) tty, fd, flags); in uv_tty_init()
239 tty->mode = UV_TTY_MODE_NORMAL; in uv_tty_init()
281 int uv_tty_set_mode(uv_tty_t* tty, uv_tty_mode_t mode) { in uv_tty_set_mode() argument
286 if (tty->mode == (int) mode) in uv_tty_set_mode()
289 fd = uv__stream_fd(tty); in uv_tty_set_mode()
290 if (tty->mode == UV_TTY_MODE_NORMAL && mode != UV_TTY_MODE_NORMAL) { in uv_tty_set_mode()
292 rc = tcgetattr(fd, &tty->orig_termios); in uv_tty_set_mode()
301 orig_termios = tty->orig_termios; in uv_tty_set_mode()
307 tmp = tty->orig_termios; in uv_tty_set_mode()
327 tty->mode = mode; in uv_tty_set_mode()
333 int uv_tty_get_winsize(uv_tty_t* tty, int* width, int* height) { in uv_tty_get_winsize() argument
338 err = ioctl(uv__stream_fd(tty), TIOCGWINSZ, &ws); in uv_tty_get_winsize()