Commit b32f4e4d authored by Muhammad Herdiansyah's avatar Muhammad Herdiansyah

get_window_size: Set read timeout as 1

parent 926fc4ed
...@@ -3563,7 +3563,8 @@ get_window_size() { ...@@ -3563,7 +3563,8 @@ get_window_size() {
# The escape codes above print the desired output as # The escape codes above print the desired output as
# user input so we have to use read to store the out # user input so we have to use read to store the out
# -put as a variable. # -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 unset IFS
# Split the string into height/width. # Split the string into height/width.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment