Skip to content
Browse files

Make sure raw mode is disabled when exiting a terminal-based REPL.

  • Loading branch information...
1 parent 74a1fc3 commit a904d123061e67a25fa46a855090dae7b7c611eb @mscdex mscdex committed with ry
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/repl.js
View
2 lib/repl.js
@@ -397,7 +397,7 @@ REPLServer.prototype.parseREPLKeyword = function (cmd) {
self.displayPrompt();
return true;
case ".exit":
- self.stream.destroy();
+ self.rli.close();
return true;
case ".help":
self.stream.write(".clear\tBreak, and also clear the local context.\n");

0 comments on commit a904d12

Please sign in to comment.
Something went wrong with that request. Please try again.