mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-12-23 12:09:55 +00:00
Add a quicker timeout for terminals that support it
This commit is contained in:
2
neofetch
2
neofetch
@@ -2871,7 +2871,7 @@ printinfo
|
|||||||
|
|
||||||
if [ "$image" != "off" ]; then
|
if [ "$image" != "off" ]; then
|
||||||
# Get cursor position
|
# 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
|
# If get cursor pos fails set the value to 0
|
||||||
[ -z "$info_height" ] && info_height=0
|
[ -z "$info_height" ] && info_height=0
|
||||||
|
|||||||
Reference in New Issue
Block a user