From 60e51a238db55ff16d15764b50f82c54d618d29e Mon Sep 17 00:00:00 2001 From: Michael Ficarra Date: Wed, 6 Jul 2011 13:05:07 -0400 Subject: [PATCH] output a newline before exiting REPL --- lib/repl.js | 1 + src/repl.coffee | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/repl.js b/lib/repl.js index f77314be5e..fb2392bafe 100644 --- a/lib/repl.js +++ b/lib/repl.js @@ -99,6 +99,7 @@ } repl.setPrompt('coffee> '); repl.on('close', function() { + process.stdout.write('\n'); return stdin.destroy(); }); repl.on('line', run); diff --git a/src/repl.coffee b/src/repl.coffee index 7e0bf3d398..0ffac23bcc 100644 --- a/src/repl.coffee +++ b/src/repl.coffee @@ -99,6 +99,8 @@ else repl = readline.createInterface stdin, stdout, autocomplete repl.setPrompt 'coffee> ' -repl.on 'close', -> stdin.destroy() +repl.on 'close', -> + process.stdout.write '\n' + stdin.destroy() repl.on 'line', run repl.prompt()