Date: Sat, 3 Sep 2022 20:15:45 GMT From: "Alfonso S. Siciliano" <asiciliano@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: 5f3ec44e7e9c - main - bsdinstall(8) hostname: Update for bsddialog 0.3 Message-ID: <202209032015.283KFjR6008929@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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 }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202209032015.283KFjR6008929>