Fix broken terminal

This commit is contained in:
Dylan 2016-03-29 11:11:28 +11:00
parent dbe5cf758f
commit 2c881c11f5
1 changed files with 1 additions and 1 deletions

View File

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