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 fi
# Get terminal lines and columns # Get terminal lines and columns
lines="$(tput lines)" term_blocks="$(stty size)"
columns="$(tput cols)" columns="${term_blocks/* }"
lines="${term_blocks/ *}"
# Calculate font size # Calculate font size
font_width="$((term_width / columns))" font_width="$((term_width / columns))"