Reduce read count to 1
This commit is contained in:
parent
0825e282cd
commit
f09890ff33
1 changed files with 2 additions and 6 deletions
8
neofetch
8
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
|
||||
|
|
Loading…
Reference in a new issue