output a newline before exiting REPL

This commit is contained in:
Michael Ficarra
2011-07-06 13:05:07 -04:00
parent 40ee30ecde
commit bb1502a9d7
2 changed files with 4 additions and 1 deletions

View File

@@ -99,6 +99,7 @@
}
repl.setPrompt('coffee> ');
repl.on('close', function() {
process.stdout.write('\n');
return stdin.destroy();
});
repl.on('line', run);

View File

@@ -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()