diff options
author | Trevor Norris <trev.norris@gmail.com> | 2014-12-05 05:34:03 -0800 |
---|---|---|
committer | Trevor Norris <trev.norris@gmail.com> | 2014-12-05 05:34:03 -0800 |
commit | fe6d5be6b40bde07a5509f808576f7772b0fb4af (patch) | |
tree | b9a3d98498899037073976f71518db6acd7d4c94 /deps/uv/src | |
parent | 709fc160e5204f9a926c2867a8ee77e55d6c30aa (diff) | |
download | android-node-v8-fe6d5be6b40bde07a5509f808576f7772b0fb4af.tar.gz android-node-v8-fe6d5be6b40bde07a5509f808576f7772b0fb4af.tar.bz2 android-node-v8-fe6d5be6b40bde07a5509f808576f7772b0fb4af.zip |
uv: float patch to revert tty breakage
Float https://github.com/libuv/libuv/commit/484a3a9 to fix incorrect
indentation in REPL.
Diffstat (limited to 'deps/uv/src')
-rw-r--r-- | deps/uv/src/unix/tty.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/deps/uv/src/unix/tty.c b/deps/uv/src/unix/tty.c index 82fa27cc12..7ae19905fb 100644 --- a/deps/uv/src/unix/tty.c +++ b/deps/uv/src/unix/tty.c @@ -123,7 +123,12 @@ int uv_tty_set_mode(uv_tty_t* tty, int mode) { uv_spinlock_unlock(&termios_spinlock); raw = tty->orig_termios; - cfmakeraw(&raw); + 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; /* Put terminal in raw mode after draining */ if (tcsetattr(fd, TCSADRAIN, &raw)) |