mirror of https://github.com/nodejs/node.git
Make sure raw mode is disabled when exiting a terminal-based REPL.
parent
bce092aeb8
commit
5908bdab9a
|
@ -423,7 +423,7 @@ function defineDefaultCommands(repl) {
|
|||
repl.defineCommand('exit', {
|
||||
help: 'Exit the repl',
|
||||
action: function() {
|
||||
this.stream.destroy();
|
||||
this.rli.close();
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue