From 58ca48fa3bad25f59a7578425299d1bccfdc3aa3 Mon Sep 17 00:00:00 2001 From: Trevor Norris Date: Fri, 5 Dec 2014 05:34:03 -0800 Subject: [PATCH] uv: float patch to revert tty breakage Float https://github.com/libuv/libuv/commit/484a3a9 to fix incorrect indentation in REPL. --- deps/uv/src/unix/tty.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/deps/uv/src/unix/tty.c b/deps/uv/src/unix/tty.c index 82fa27c..7ae1990 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)) -- 2.7.4