bsdinstall(8) hostname: Update for bsddialog 0.3

* Delete --hline info. bsddialog(1) 0.3 closes an --inputbox pressing
   only Enter (restoring the previous LGPL-dialog behavior).
 * Add dynamic width auto-sizing.
This commit is contained in:
Alfonso S. Siciliano 2022-09-03 22:12:46 +02:00
parent e1a40dd294
commit 5f3ec44e7e
No known key found for this signature in database
GPG Key ID: 3F9EEFACFD371E37

View File

@ -73,7 +73,7 @@ SET_HOSTNAME='hostname -s "%s"'
dialog_hostname()
{
local prompt="$msg_please_choose_a_hostname"
local hline="Use TAB and Enter to select $msg_ok"
local hline=
local value="$*"
bsddialog \
@ -83,7 +83,7 @@ dialog_hostname()
--ok-label "$msg_ok" \
--no-cancel \
--inputbox "$prompt" \
0 56 "$value" \
0 0 "$value" \
2>&1 >&$DIALOG_TERMINAL_PASSTHRU_FD
}