From 5908bdab9a87a50af80e7100c3b1c52b8ecd4c85 Mon Sep 17 00:00:00 2001 From: Brian White Date: Wed, 17 Nov 2010 21:41:36 -0500 Subject: [PATCH] Make sure raw mode is disabled when exiting a terminal-based REPL. --- lib/repl.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/repl.js b/lib/repl.js index 86471af60ad..8c4e6f0c370 100644 --- a/lib/repl.js +++ b/lib/repl.js @@ -423,7 +423,7 @@ function defineDefaultCommands(repl) { repl.defineCommand('exit', { help: 'Exit the repl', action: function() { - this.stream.destroy(); + this.rli.close(); } });