Fixes for dialog ui that accidently placed the ui itself into expected output. Tweaked the x-clacks header a bit to be better explained for those who may not know what it is.

This commit is contained in:
Storm Dragon
2026-04-18 02:24:47 -04:00
parent 01582c2fe7
commit 7ccf3c591b
2 changed files with 14 additions and 8 deletions
+12 -6
View File
@@ -8,7 +8,8 @@ inputbox() {
dialog --backtitle "Configure Server" \
--clear \
--inputbox "$promptText" 0 0 "$initialValue" --stdout
--inputbox "$promptText" 0 0 "$initialValue" \
3>&1 1>/dev/tty 2>&3
}
passwordbox() {
@@ -17,19 +18,22 @@ passwordbox() {
dialog --backtitle "Configure Server" \
--clear \
--passwordbox "$promptText" 0 0 "$initialValue" --stdout
--passwordbox "$promptText" 0 0 "$initialValue" \
3>&1 1>/dev/tty 2>&3
}
msgbox() {
dialog --backtitle "Configure Server" \
--clear \
--msgbox "$*" 10 72
--msgbox "$*" 10 72 \
> /dev/tty 2>&1
}
yesno() {
if dialog --backtitle "Configure Server" \
--clear \
--yesno "$*" 10 80 --stdout; then
--yesno "$*" 10 80 \
> /dev/tty 2>&1; then
echo "Yes"
else
echo "No"
@@ -53,7 +57,8 @@ menulist() {
dialog --backtitle "Configure Server" \
--clear \
--no-tags \
--menu "$promptText" 0 0 0 "${menuList[@]}" --stdout
--menu "$promptText" 0 0 0 "${menuList[@]}" \
3>&1 1>/dev/tty 2>&3
}
textbox() {
@@ -61,5 +66,6 @@ textbox() {
dialog --backtitle "Configure Server" \
--clear \
--textbox "$filePath" 0 0
--textbox "$filePath" 0 0 \
> /dev/tty 2>&1
}