mirror of
https://github.com/zebrajr/node.git
synced 2025-12-06 12:20:27 +01:00
uv: float patch to revert tty breakage
Float https://github.com/libuv/libuv/commit/484a3a9 to fix incorrect indentation in REPL.
This commit is contained in:
parent
9ad05cd9db
commit
58ca48fa3b
7
deps/uv/src/unix/tty.c
vendored
7
deps/uv/src/unix/tty.c
vendored
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user