You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 3, 2022. It is now read-only.
I am unable to kill the process (by pressing Ctrl+C or Ctrl+Z) when inside a call to either keyInYN or keyInYNStrict. Regular question calls work as expected, but I would think you would also want to let the user kill the process even in a call to keyInYNStrict. Or perhaps, this could be an option at least?
The text was updated successfully, but these errors were encountered:
Node.js seems to do different behavior about handling SIGINT while TTY in raw mode, in some environments, shells, versions, etc.
It has been discussed at times (e.g. nodejs/node#4758, nodejs/node#3328, nodejs/node#6626).
Someday, Node.js might solve this problem.
Now, better way I think is giving the choice to cancel to user without ^C.
For example, additional keyInYN method (instead of keyInPause) allow user to make the final decision on whether something should do or not, after inputting all information.
I am unable to kill the process (by pressing Ctrl+C or Ctrl+Z) when inside a call to either
keyInYN
orkeyInYNStrict
. Regular question calls work as expected, but I would think you would also want to let the user kill the process even in a call tokeyInYNStrict
. Or perhaps, this could be an option at least?The text was updated successfully, but these errors were encountered: