stty is more compatible and does not require any additional dependancies for busybox

This commit is contained in:
Eric Warnke 2016-10-26 09:59:22 -04:00
parent bc077acfb8
commit fc776921d5

View file

@ -33,8 +33,8 @@ IPv4_address=""
IPv6_address=""
# Find the rows and columns
rows=$(tput lines)
columns=$(tput cols)
rows=$(stty size | awk '{print $1}')
columns=$(stty size | awk '{print $2}')
# Divide by two so the dialogs take up half of the screen, which looks nice.
r=$(( rows / 2 ))