From 1a8d7d4fa897a632a89d9e9485a78cfa1d634c87 Mon Sep 17 00:00:00 2001 From: deicidus Date: Fri, 12 May 2023 12:36:29 -0700 Subject: [PATCH] POSIX --- spells/cantrips/fathom-cursor | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spells/cantrips/fathom-cursor b/spells/cantrips/fathom-cursor index 0ca984c..f6f7494 100755 --- a/spells/cantrips/fathom-cursor +++ b/spells/cantrips/fathom-cursor @@ -18,9 +18,10 @@ fathom_cursor() { # Get the position of the cursor stty -echo printf "\033[6n" - IFS=';' read -r -d R ROW COL + oldIFS="$IFS"; IFS=';' read -r ROW COL stty echo position=$(printf "%s;%s" "${ROW#*[}" "${COL%%R*}") + IFS="$oldIFS" if $x && $y; then if $verbose; then