"Fossies" - the Fresh Open Source Software Archive

Member "Plone-5.2.5-UnifiedInstaller-1.0/helper_scripts/whipdialog_test.sh" (13 Sep 2021, 556 Bytes) of package /linux/www/Plone-5.2.5-UnifiedInstaller-1.0.tgz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 #!/bin/bash
    2 
    3 . whipdialog.sh
    4 
    5 WHIPTAIL --title="Yes or No" --yesno "Make a decision, yes or no."
    6 DECISION=$?
    7 
    8 WHIPTAIL --title="Alert box" --msgbox "You should know..."
    9 
   10 WHIPTAIL --title="Input Box" --inputbox "Tell me something new."
   11 INBOX=$WHIPTAIL_RESULT
   12 
   13 WHIPTAIL --title="Password Box" --passwordbox "Tell me something private."
   14 PRIVATE=$WHIPTAIL_RESULT
   15 
   16 # MENU_CHOICES=("One" "Two 2" "Three")
   17 WHIPTAIL --title="Menu" --menu "Draw me a menu" --choices="One#Two 2#Three"
   18 MENU=$WHIPTAIL_RESULT
   19 
   20 echo
   21 echo $DECISION
   22 echo $INBOX
   23 echo $PRIVATE
   24 echo $MENU
   25