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

v0.7.4-release
Brian White 2010-11-17 21:41:36 -05:00 committed by Ryan Dahl
parent bce092aeb8
commit 5908bdab9a
1 changed files with 1 additions and 1 deletions

View File

@ -423,7 +423,7 @@ function defineDefaultCommands(repl) {
repl.defineCommand('exit', { repl.defineCommand('exit', {
help: 'Exit the repl', help: 'Exit the repl',
action: function() { action: function() {
this.stream.destroy(); this.rli.close();
} }
}); });