Hi,
Has anyone tried using the
dialog utility ??
I tried implementing a few box options available but I can't seem to figure our how to activate the help button.
e.g: If implement a menu box as given below, then how can I give an action to the help button? I tried adding the help button exit status "2" to the case statement but it doesn't get activated :-/
Code:
function test(){
dialog --clear --help-button --backtitle "" \--title "" \--menu "\n\n:" 30 60 15 \
Menu_1 "" \
Menu_2 "" \
Menu_3 "" \
Menu_4 "" \
Menu_5 "" 2>"${INPUT}"
key=$(<"${INPUT}")
case $key in
Menu_1) ;;
Menu_2) ;;
Menu_3) ;;
Menu_4) ;;
Menu_5) ;; break;;
esac
}