From f09890ff3345a75ca1fea6258d85f11138a2c6d1 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Fri, 10 Jun 2016 18:11:47 +1000 Subject: [PATCH] Reduce read count to 1 --- neofetch | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/neofetch b/neofetch index 34582c17..b78f19f0 100755 --- a/neofetch +++ b/neofetch @@ -2283,15 +2283,11 @@ getimage () { else printf "%b%s" "\033[14t\033[c" + read_flags="-d c" fi # The escape code above prints the output AFTER the prompt so this - # loop below reads it as input. wtf xterm / terminology - if [ "$image_backend" == "tycat" ]; then - read -t 1 -s -r term_size - else - read -t 1 -d c -s -r term_size - fi + read -t 1 ${read_flags} -s -r term_size stty echo # Split the string