diff options
author | Saúl Ibarra Corretgé <saghul@gmail.com> | 2014-11-21 15:43:12 +0100 |
---|---|---|
committer | Bert Belder <bertbelder@gmail.com> | 2014-12-09 17:57:06 +0100 |
commit | eac867258e0308d956c01e41fa3faae698639f8c (patch) | |
tree | 02fdcadb1d25dbb47fd0ea62974f227b2ac23c56 /deps/uv/src/unix/tty.c | |
parent | 153ce23727d935b4ae1c6850547df1a606cf0295 (diff) | |
download | android-node-v8-eac867258e0308d956c01e41fa3faae698639f8c.tar.gz android-node-v8-eac867258e0308d956c01e41fa3faae698639f8c.tar.bz2 android-node-v8-eac867258e0308d956c01e41fa3faae698639f8c.zip |
deps: update libuv to 1.0.1
PR-URL: https://github.com/joyent/node/pull/8785
Reviewed-by: Trevor Norris <trev.norris@gmail.com>
Diffstat (limited to 'deps/uv/src/unix/tty.c')
-rw-r--r-- | deps/uv/src/unix/tty.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/deps/uv/src/unix/tty.c b/deps/uv/src/unix/tty.c index 7ae19905fb..82fa27cc12 100644 --- a/deps/uv/src/unix/tty.c +++ b/deps/uv/src/unix/tty.c @@ -123,12 +123,7 @@ int uv_tty_set_mode(uv_tty_t* tty, int mode) { uv_spinlock_unlock(&termios_spinlock); raw = tty->orig_termios; - raw.c_iflag &= ~(BRKINT | ICRNL | INPCK | ISTRIP | IXON); - raw.c_oflag |= (ONLCR); - raw.c_cflag |= (CS8); - raw.c_lflag &= ~(ECHO | ICANON | IEXTEN | ISIG); - raw.c_cc[VMIN] = 1; - raw.c_cc[VTIME] = 0; + cfmakeraw(&raw); /* Put terminal in raw mode after draining */ if (tcsetattr(fd, TCSADRAIN, &raw)) |