diff options
| author | tv <tv@krebsco.de> | 2026-08-04 20:02:09 +0200 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-08-04 20:02:09 +0200 |
| commit | 718d2fb12728ae278a292cec34f5db84f5787cd3 (patch) | |
| tree | a4f073f9e15490247eff0eed5ba40af723cc5a23 | |
| parent | 865e78a0877dd10f4736a7bdb721aa9448647d8d (diff) | |
don't depend on LINES and COLUMNS variables
| -rwxr-xr-x | wetter | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 |
