mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-10-03 16:51:29 +00:00
get_window_size: Set read timeout as 1
This commit is contained in:
3
neofetch
3
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.
|
||||
|
Reference in New Issue
Block a user