Use stty instead of tput
This commit is contained in:
parent
f4e96993d5
commit
81577799c7
1 changed files with 3 additions and 2 deletions
5
neofetch
5
neofetch
|
@ -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))"
|
||||
|
|
Loading…
Reference in a new issue