Improve whiptail menu UI in install_script function

Updated the whiptail menu in the install_script function to enhance usability. Changes include adjusting the backtitle, adding --fb and --notags options, updating the menu prompt with navigation instructions, and increasing the menu width for better display.
This commit is contained in:
CanbiZ 2025-09-17 17:00:39 +02:00
parent 699aaefdb5
commit 82707ce199

View File

@ -1537,13 +1537,16 @@ install_script() {
menu_items+=("4" "Settings") menu_items+=("4" "Settings")
fi fi
TMP_CHOICE=$(whiptail --backtitle "[dev] Proxmox VE Helper Scripts" \ TMP_CHOICE=$(whiptail \
--backtitle "Proxmox VE Helper Scripts" \
--title "Community-Scripts Options" \ --title "Community-Scripts Options" \
--ok-button "Select" --cancel-button "Exit Script" \ --ok-button "Select" --cancel-button "Exit Script" \
--menu "Choose an option:" 20 40 9 \ --fb --notags \
--menu "\nChoose an option:\n\nUse TAB or Arrow keys to navigate, ENTER to select.\n" \
20 60 9 \
"${menu_items[@]}" \ "${menu_items[@]}" \
--default-item "1" 3>&1 1>&2 2>&3) || exit_script --default-item "1" \
3>&1 1>&2 2>&3) || exit_script
CHOICE="$TMP_CHOICE" CHOICE="$TMP_CHOICE"
fi fi