Open ORESoftware opened 6 years ago
I asked a question on SO about this, if someone wants points: https://stackoverflow.com/questions/47128158/close-vorpal-instance-programmatically
@dthree @milesj hopefully this is a quick one, help appreciated
I left a quick answer on Stack Overflow in case other people find that as well, but you can use vorpal.exec("exit");
The user can close vorpal with ctrl+c, but how can I close vorpal programmatically?
For example, if a vorpal terminal session is opened, but no further stdin is received after 25 seconds, I want to programmatically close vorpal, here is what my code looks like: