Skip to content

Commit

Permalink
output a newline before exiting REPL
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelficarra committed Jul 6, 2011
1 parent fff4c9c commit 60e51a2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/repl.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion src/repl.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -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()

0 comments on commit 60e51a2

Please sign in to comment.