Closed mylinuxforwork closed 4 months ago
The exit-code for both "No" and CTRL+C
is now 1. You can check this with the following snippet:
gum confirm; echo $?
And the user aborted message is fixed by: #578
@MikaelFangel Thanks. But how can a user now abort completely the gum confirm request and exit the script?
Okay, I investigated it a bit more and the issue you are experiencing is actually linked to the implementation of huh? not handling the user aborted properly. So, it should be fixed by the PR I've linked to this issue now, as it returns the exit code back to 130 as of earlier versions of gum.
Just tried to test the handling of the exit code 130 CTRL+C on a gum confirm script. When I press CTRL-C the following message appears: unable to run confirm: user aborted and below :: Update canceled.
This is my script:
Is it possible that the exit code 130 is not supported anymore on gum confirm?