From 81577799c7235f753b34b4735f2556b447258825 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Fri, 19 Aug 2016 10:29:27 +1000 Subject: [PATCH] Use stty instead of tput --- neofetch | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/neofetch b/neofetch index 2f6e2855..7bff0e4b 100755 --- a/neofetch +++ b/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))"