Open sidorenkobw opened 7 years ago
A small note. In my command I spawn a child process which works in a background. I tried different stdio options, like: omitting, ["ignore", "pipe", "pipe"], ["ignore", "ignore", "pipe"], ... In each case my keypress handler is called after command is finished.
I found a work around for this by calling: stdin.setRawMode(true); stdin.resume(); But after this ctrl+c is not working anymore How can make it work back again?
Hi guys,
How can I process keyboard events while my command is running (promise is returned). vorpal.on("keypress"...) works only when prompt is available.
Thank you