Add a quicker timeout for terminals that support it

This commit is contained in:
Dylan 2016-03-26 13:53:54 +11:00
parent 3e7e62a528
commit f153e8d2e4
1 changed files with 1 additions and 1 deletions

View File

@ -2871,7 +2871,7 @@ printinfo
if [ "$image" != "off" ]; then
# Get cursor position
info_height="$(IFS=';' read -srdR -t 1 -p $'\033[6n' ROW COL; printf "%s" "${ROW#*[}")"
info_height="$(IFS=';' read -srdR -t 1 -d c -p $'\033[6n\033[c' ROW COL; printf "%s" "${ROW#*[}")"
# If get cursor pos fails set the value to 0
[ -z "$info_height" ] && info_height=0