arc: fix cmdline menu output

Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
AuxXxilium 2024-01-20 13:28:52 +01:00
parent c7708790a9
commit 2a753e7893

View File

@ -961,7 +961,8 @@ function cmdlineMenu() {
MSG+="\nEnter the Parameter Name and Value you want to add.\n" MSG+="\nEnter the Parameter Name and Value you want to add.\n"
LINENUM=$(($(echo -e "${MSG}" | wc -l) + 10)) LINENUM=$(($(echo -e "${MSG}" | wc -l) + 10))
while true; do while true; do
dialog --clear --backtitle "$(backtitle)" --title "User Cmdline" \ dialog --clear --backtitle "$(backtitle)" \
--colors --title "User Cmdline" \
--form "${MSG}" ${LINENUM:-16} 70 2 "Name:" 1 1 "" 1 10 55 0 "Value:" 2 1 "" 2 10 55 0 \ --form "${MSG}" ${LINENUM:-16} 70 2 "Name:" 1 1 "" 1 10 55 0 "Value:" 2 1 "" 2 10 55 0 \
2>"${TMP_PATH}/resp" 2>"${TMP_PATH}/resp"
RET=$? RET=$?