Use stty instead of tput
This commit is contained in:
parent
f4e96993d5
commit
81577799c7
5
neofetch
5
neofetch
|
@ -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))"
|
||||||
|
|
Reference in New Issue