Some environments (tmux) export COLUMNS but not LINES. Use 'stty size' as a fallback for the missing dimension.