Tiny screens get sane minimums

This commit is contained in:
Eric Warnke 2016-10-26 10:44:15 -04:00
parent 3bcc93d921
commit 0b19bacc1b

View file

@ -40,6 +40,9 @@ columns=$(echo $screen_size | awk '{print $2}')
# Divide by two so the dialogs take up half of the screen, which looks nice.
r=$(( rows / 2 ))
c=$(( columns / 2 ))
# Unless the screen is tiny
r=$(( r < 20 ? 20 : r ))
c=$(( c < 70 ? 70 : c ))
######## Undocumented Flags. Shhh ########
skipSpaceCheck=false