Use stty instead of tput

This commit is contained in:
Dylan Araps 2016-08-19 10:29:27 +10:00
parent f4e96993d5
commit 81577799c7
1 changed files with 3 additions and 2 deletions

View File

@ -1951,8 +1951,9 @@ getimage() {
fi
# Get terminal lines and columns
lines="$(tput lines)"
columns="$(tput cols)"
term_blocks="$(stty size)"
columns="${term_blocks/* }"
lines="${term_blocks/ *}"
# Calculate font size
font_width="$((term_width / columns))"