From b32f4e4d1ad87c5a5daf67d957fdac5a1fdf777e Mon Sep 17 00:00:00 2001 From: Muhammad Herdiansyah Date: Fri, 24 Aug 2018 12:08:29 +0700 Subject: [PATCH] get_window_size: Set read timeout as 1 --- neofetch | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/neofetch b/neofetch index c2b5bc9b..94c612aa 100755 --- a/neofetch +++ b/neofetch @@ -3563,7 +3563,8 @@ get_window_size() { # The escape codes above print the desired output as # user input so we have to use read to store the out # -put as a variable. - IFS=';t' read -d t -t 0.05 -sra term_size + # The 1 second timeout is required for older bash + IFS=';t' read -d t -t 1 -sra term_size unset IFS # Split the string into height/width.