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 bce092a commit 5908bda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/repl.js
Expand Up @@ -423,7 +423,7 @@ function defineDefaultCommands(repl) {
repl.defineCommand('exit', {
help: 'Exit the repl',
action: function() {
this.stream.destroy();
this.rli.close();
}
});

Expand Down

0 comments on commit 5908bda

Please sign in to comment.