X-Git-Url: https://git.josue.xyz/?p=whiptailexamples%2F.git;a=blobdiff_plain;f=colors.sh;fp=colors.sh;h=bf83cc5939d0bf043e1cef28d4c85e3031f4240f;hp=0000000000000000000000000000000000000000;hb=20e80347c9beb58403bcb6f76c26fafbb40d73b1;hpb=4eb1a6e1220dee809c089a0a7db1f22a1277c8e0 diff --git a/colors.sh b/colors.sh new file mode 100755 index 0000000..bf83cc5 --- /dev/null +++ b/colors.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +export NEWT_COLORS=' +window=,red +border=white,red +textbox=white,red +button=black,white +' + + + +if (whiptail --title "Test Yes/No Box" --yesno "Choose between Yes and No." 10 60) then + echo "You chose Yes. Exit status was $?." +else + echo "You chose No. Exit status was $?." +fi