dthree / vorpal

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

CTRL+C twice won't exit process #44

Closed scotthovestadt closed 8 years ago

scotthovestadt commented 8 years ago

In my tests I have to hit CTRL+C three times. If I move the process.exit() call into the keypress handler instead of _sigint, it works correctly on the second keypress.

dthree commented 8 years ago

What terminal are you using?

scotthovestadt commented 8 years ago

iTerm on iOS. I'll look into debugging this issue and providing a pull request.

dthree commented 8 years ago

Thanks.

dthree commented 8 years ago

I did a fix - could you please try this again? I can't reproduce it.

dthree commented 8 years ago

Fixed v1.5.2.

https://github.com/dthree/vorpal/issues/55