Swap stty for -s

This commit is contained in:
Dylan Araps 2016-08-26 11:22:54 +10:00
parent e53e82c9c4
commit db8aebd216

View file

@ -2632,7 +2632,7 @@ kdeconfigdir() {
dynamicprompt() { dynamicprompt() {
# 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#*[}"; stty echo)" info_height="$(IFS=';' read -srdR -t 1 -d c -p $'\033[6n\033[c' ROW COL; printf "%s" "${ROW#*[}")"
# Calculate image height in terminal cells. # Calculate image height in terminal cells.
# The '+ 3' adds a gap between the prompt and the content. # The '+ 3' adds a gap between the prompt and the content.
@ -3006,7 +3006,7 @@ main() {
# Print the info # Print the info
printinfo printinfo
dynamicprompt 2>/dev/null dynamicprompt
# Re-enable line wrap # Re-enable line wrap
printf "%b%s" "\033[?7h" printf "%b%s" "\033[?7h"