Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bb1502a

Browse files
output a newline before exiting REPL
1 parent 40ee30e commit bb1502a

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

lib/repl.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/repl.coffee

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,8 @@ else
9999
repl = readline.createInterface stdin, stdout, autocomplete
100100

101101
repl.setPrompt 'coffee> '
102-
repl.on 'close', -> stdin.destroy()
102+
repl.on 'close', ->
103+
process.stdout.write '\n'
104+
stdin.destroy()
103105
repl.on 'line', run
104106
repl.prompt()

0 commit comments

Comments
 (0)