git: c08068839987 - main - release: Use full window size for installer over serial lines
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 05 May 2022 18:08:58 UTC
The branch main has been updated by jrtc27: URL: https://cgit.FreeBSD.org/src/commit/?id=c0806883998778e97311a04d5c71718109bede4e commit c0806883998778e97311a04d5c71718109bede4e Author: Jessica Clarke <jrtc27@FreeBSD.org> AuthorDate: 2022-05-05 18:07:54 +0000 Commit: Jessica Clarke <jrtc27@FreeBSD.org> CommitDate: 2022-05-05 18:07:54 +0000 release: Use full window size for installer over serial lines When running over a serial line we end up defaulting to 80x24, which is rather cramped for many dialog boxes and occupies very little screen space for most modern terminals. Thus, run resizewin -z to set the terminal size if not already known before starting the installer, just as we do for csh and sh login shells already in their default dotfiles. Reviewed by: jhb, gjb Obtained from: CheriBSD Differential Revision: https://reviews.freebsd.org/D34414 --- release/rc.local | 3 +++ 1 file changed, 3 insertions(+) diff --git a/release/rc.local b/release/rc.local index 023c3dce1021..0b8df48b2085 100755 --- a/release/rc.local +++ b/release/rc.local @@ -48,6 +48,9 @@ else fi export TERM +# Query terminal size; useful for serial lines. +resizewin -z + if [ -f /etc/installerconfig ]; then if bsdinstall script /etc/installerconfig; then bsddialog --backtitle "FreeBSD Installer" --title "Complete" --no-cancel --ok-label "Reboot" --pause "Installation of FreeBSD complete! Rebooting in 10 seconds" 10 30 10