summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xwetter2
1 files changed, 2 insertions, 0 deletions
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