-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Process interrupt ignored when using cli-progress v3.11 #126
Comments
an option called |
even using this option I still face the same behaviour |
set |
from the docs
i wasn't aware of this side effect. sry! the question is how to solve this (putting and process.exit on the end of the listener may avoids users to add their own actions..) |
This is a great library! The ability to hard stop a script from cli is essential though. |
set gracefulExit: false - this will be the default value in the upcoming hotfix |
I use cli-progress const bar1 = new cliProgress.SingleBar({gracefulExit: true}, cliProgress.Presets.shades_classic); and const bar1 = new cliProgress.SingleBar({gracefulExit: false}, cliProgress.Presets.shades_classic); both don't kill the node process after hitting |
When using cli-progress, if you attempt to interrupt the process using ctrl+c the command is ignored until the process fully completes.
Reading through the readme I may have missed how this is supposed to be handled, but I do not see any config options to specify how to handle a kill request from a user.
The text was updated successfully, but these errors were encountered: