From: Joonas Viskari Date: Thu, 14 Jun 2018 10:41:59 +0000 (+0300) Subject: colors example X-Git-Url: https://git.josue.xyz/?p=whiptailexamples%2F.git;a=commitdiff_plain;h=20e80347c9beb58403bcb6f76c26fafbb40d73b1 colors example --- 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