Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
Make sure raw mode is disabled when exiting a terminal-based REPL.
Browse files Browse the repository at this point in the history
  • Loading branch information
mscdex authored and ry committed Nov 18, 2010
1 parent 74a1fc3 commit a904d12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/repl.js
Expand Up @@ -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");
Expand Down

0 comments on commit a904d12

Please sign in to comment.