From d6056878e39bc52bcb1783d8b114eb2aba5fafea Mon Sep 17 00:00:00 2001 From: deicidus Date: Sat, 6 May 2023 22:53:33 -0700 Subject: [PATCH] more POSIX --- spells/cantrips/fathom-cursor | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/spells/cantrips/fathom-cursor b/spells/cantrips/fathom-cursor index 506827f..805310a 100755 --- a/spells/cantrips/fathom-cursor +++ b/spells/cantrips/fathom-cursor @@ -17,11 +17,13 @@ fathom_cursor() { done # Get the position of the cursor + stty -echo printf "\033[6n" while IFS=';' read -r -d R ROW COL; do break done - position=$(printf "%s;%s" "${ROW#*[}" "${COL%%R*}") + stty echo + position=$(printf "%s;%s" "${COL%%R*}" "${ROW#*[}") if [ $x = true ] && [ $y = true ]; then if [ $verbose = true ]; then