diff --git a/lib/repl.js b/lib/repl.js index f77314be..fb2392ba 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 7e0bf3d3..0ffac23b 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()