Skip to content

Commit 4e43afd

Browse files
committed
Fixes #1805. Reset TTY mode on exit.
1 parent d1e6a13 commit 4e43afd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/node.cc

+2-2
Original file line numberDiff line numberDiff line change
@@ -2180,12 +2180,12 @@ Handle<Object> SetupProcessObject(int argc, char *argv[]) {
21802180

21812181
static void AtExit() {
21822182
node::Stdio::Flush();
2183-
node::Stdio::DisableRawMode(STDIN_FILENO);
2183+
uv_tty_reset_mode();
21842184
}
21852185

21862186

21872187
static void SignalExit(int signal) {
2188-
Stdio::DisableRawMode(STDIN_FILENO);
2188+
uv_tty_reset_mode();
21892189
_exit(1);
21902190
}
21912191

0 commit comments

Comments
 (0)