dthree / vorpal

Node's framework for interactive CLIs
http://vorpal.js.org
MIT License
5.64k stars 280 forks source link

nodemon messes up vorpal command history #149

Closed dkebler closed 8 years ago

dkebler commented 8 years ago

when vorpal is launched from within nodemon, the command history is non-functional. Instead of previous commands appearing with the up cursor you get ^[[A

Offirmo commented 8 years ago

Same problem. Answered as the 1st entry in nodemon FAQ https://github.com/remy/nodemon/blob/master/faq.md#nodemon-doesnt-work-with-my-repl

If using the "restartable" option, nodemon takes over stdin to catch the manual restart command. Using "restartable": false solves the problem.

dthree commented 8 years ago

@dkebler can you try that and let me know?

I threw this in the Wiki:

https://github.com/dthree/vorpal/wiki/Docs-%7C-Integration

Thanks for the insight, @offirmo

dkebler commented 8 years ago

just now saw this. Thanks! working like a charm!