From 718d2fb12728ae278a292cec34f5db84f5787cd3 Mon Sep 17 00:00:00 2001 From: tv Date: Tue, 4 Aug 2026 20:02:09 +0200 Subject: don't depend on LINES and COLUMNS variables --- wetter | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wetter b/wetter index fb89ac0..9a3bfe5 100755 --- a/wetter +++ b/wetter @@ -119,6 +119,7 @@ main() { now=$(date -Is) lines=$( + LINES=${LINES-$(stty size | cut -d\ -f1)} lines=$((LINES - 2)) max_lines=40 min_lines=20 @@ -136,6 +137,7 @@ main() { # + 2*2 + 2*4 # y markings # + 13 # colorbox columns=$( + COLUMNS=${COLUMNS-$(stty size | cut -d\ -f2)} columns=$COLUMNS max_columns=200 min_columns=80 -- cgit v1.3.1