]> git.ipfire.org Git - people/mfischer/ipfire-2.x.git/commitdiff
make.sh: Erase the line when resizing the screen
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 9 Jul 2024 21:26:25 +0000 (21:26 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 22 Jul 2024 15:21:20 +0000 (15:21 +0000)
This should leave less clutter, but there is still some.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
make.sh

diff --git a/make.sh b/make.sh
index a26b47287740af088be30972d0d467fe0ebd3d12..13ed5459b97731931741b599b7b1ad9886015335 100755 (executable)
--- a/make.sh
+++ b/make.sh
@@ -70,6 +70,12 @@ resize_terminal() {
                COLUMNS=80
        fi
 
+       # Wipe any previous content before updating the counters
+       if [ -n "${TIME_COL}" ]; then
+               tput hpa "${TIME_COL}"
+               tput el
+       fi
+
        # The status column is always 8 characters wide
        STATUS_WIDTH=8