From db8aebd216ef2aa12dc474ef46107182725ae426 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Fri, 26 Aug 2016 11:22:54 +1000 Subject: [PATCH] Swap stty for -s --- neofetch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/neofetch b/neofetch index 0b1579cd..97ef9558 100755 --- a/neofetch +++ b/neofetch @@ -2632,7 +2632,7 @@ kdeconfigdir() { dynamicprompt() { # 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)" + info_height="$(IFS=';' read -srdR -t 1 -d c -p $'\033[6n\033[c' ROW COL; printf "%s" "${ROW#*[}")" # Calculate image height in terminal cells. # The '+ 3' adds a gap between the prompt and the content. @@ -3006,7 +3006,7 @@ main() { # Print the info printinfo - dynamicprompt 2>/dev/null + dynamicprompt # Re-enable line wrap printf "%b%s" "\033[?7h"