Swap stty for -s
This commit is contained in:
parent
e53e82c9c4
commit
db8aebd216
1 changed files with 2 additions and 2 deletions
4
neofetch
4
neofetch
|
@ -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"
|
||||||
|
|
Loading…
Reference in a new issue