Browse Source

replaced read command with POSIX-compliant printf

main
deicidus 2 years ago
parent
commit
5d4496ca70
  1. 2
      spells/cantrips/fathom-cursor

2
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

Loading…
Cancel
Save