Swap stty for -s

This commit is contained in:
Dylan Araps 2016-08-26 11:22:54 +10:00
parent e53e82c9c4
commit db8aebd216
1 changed files with 2 additions and 2 deletions

View File

@ -2632,7 +2632,7 @@ kdeconfigdir() {
dynamicprompt() {
# 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.
# The '+ 3' adds a gap between the prompt and the content.
@ -3006,7 +3006,7 @@ main() {
# Print the info
printinfo
dynamicprompt 2>/dev/null
dynamicprompt
# Re-enable line wrap
printf "%b%s" "\033[?7h"