Closed lnussel closed 7 months ago
Or a new d_yesno
function could be created.
sure. or make it transparent to avoid surprises like me :)
The d
method is somewhat misleading anyway, as it does multiple things which are only needed in specific cases:
$result
, only needed for inputAnd then it sets --backtitle
which is actually useful everywhere.
This mess should be untangled in a bigger refactor IMO...
the
d()
abstraction exits on exit code 1 which is normally cancel. The yesno dialog is special though. The absolutely valid 'no' reply also maps to exit code 1. So the function should probably catch that special case to avoid having to call dialog manually all over the script.