git: 5f3ec44e7e9c - main - bsdinstall(8) hostname: Update for bsddialog 0.3
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 03 Sep 2022 20:15:45 UTC
The branch main has been updated by asiciliano: URL: https://cgit.FreeBSD.org/src/commit/?id=5f3ec44e7e9c11f90ad1128db1116925b493fad0 commit 5f3ec44e7e9c11f90ad1128db1116925b493fad0 Author: Alfonso S. Siciliano <asiciliano@FreeBSD.org> AuthorDate: 2022-09-03 20:12:46 +0000 Commit: Alfonso S. Siciliano <asiciliano@FreeBSD.org> CommitDate: 2022-09-03 20:15:12 +0000 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. --- usr.sbin/bsdinstall/scripts/hostname | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.sbin/bsdinstall/scripts/hostname b/usr.sbin/bsdinstall/scripts/hostname index eff2bc28e586..3fb455acc721 100755 --- a/usr.sbin/bsdinstall/scripts/hostname +++ b/usr.sbin/bsdinstall/scripts/hostname @@ -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 }