Fix hang with travis

This commit is contained in:
Dylan 2016-03-26 13:41:49 +11:00
parent dfc89b8cfc
commit 5d4212853c

View file

@ -2871,7 +2871,7 @@ printinfo
if [ "$image" != "off" ]; then if [ "$image" != "off" ]; then
# Get cursor position # Get cursor position
info_height="$(IFS=';' read -srdR -p $'\033[6n' ROW COL; printf "%s" "${ROW#*[}")" info_height="$(IFS=';' read -srdR -t 1 -p $'\033[6n' ROW COL; printf "%s" "${ROW#*[}")"
# Set cursor position dynamically based on height of ascii/text. # Set cursor position dynamically based on height of ascii/text.
[ "$lines" -lt "$info_height" ] && lines="$info_height" [ "$lines" -lt "$info_height" ] && lines="$info_height"