Skip to content

Commit

Permalink
uv: float patch to revert tty breakage
Browse files Browse the repository at this point in the history
Float libuv/libuv@484a3a9 to fix incorrect
indentation in REPL.
  • Loading branch information
trevnorris authored and piscisaureus committed Dec 9, 2014
1 parent 9ad05cd commit 58ca48f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion deps/uv/src/unix/tty.c
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 58ca48f

Please sign in to comment.