From 5d4496ca7021a132fdd9e7ea489c430119bfa7a8 Mon Sep 17 00:00:00 2001 From: deicidus Date: Sat, 6 May 2023 22:12:20 -0700 Subject: [PATCH] replaced read command with POSIX-compliant printf --- spells/cantrips/fathom-cursor | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spells/cantrips/fathom-cursor b/spells/cantrips/fathom-cursor index e7f60bf..d4b7656 100755 --- a/spells/cantrips/fathom-cursor +++ b/spells/cantrips/fathom-cursor @@ -17,7 +17,7 @@ fathom_cursor() { done # Get the position of the cursor - position=$(IFS=';' read -sdR -p $'\E[6n' ROW COL; printf "%s;%s" "${ROW#*[}" "$COL") + position=$(IFS=';' printf "\033[6n" && IFS=';' read -r ROW COL; printf "%s;%s" "${ROW#*[}" "$COL") if [ $x = true ] && [ $y = true ]; then if [ $verbose = true ]; then