From 43d4e1e865f2376d3342be566dd1c5a18c247283 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Mon, 13 Jun 2016 17:29:25 +1000 Subject: [PATCH] Add comment --- neofetch | 2 ++ 1 file changed, 2 insertions(+) diff --git a/neofetch b/neofetch index c6a6f2b3..2e4e71c8 100755 --- a/neofetch +++ b/neofetch @@ -3343,6 +3343,8 @@ printinfo if [ "$image" != "off" ]; then # Get cursor position info_height="$(stty -echo; IFS=';' read -rdR -t 1 -d c -p $'\033[6n\033[c' ROW COL; printf "%s" "${ROW#*[}"; stty echo)" + + # Calculate image height in terminal cells. lines="$((${width:-1} / ${font_width:-1} / 2 + 3))" # Set cursor position dynamically based on height of ascii/text.