Browse Source

replaced read command with POSIX-compliant printf

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

2
spells/cantrips/fathom-cursor

@ -17,7 +17,7 @@ fathom_cursor() {
done done
# Get the position of the cursor # Get the position of the cursor
position=$(IFS=';' printf "\033[6n" && IFS=';' read -r ROW COL; printf "%s;%s" "${ROW#*[}" "$COL") position=$(printf "\033[6n" && IFS=';' read -r ROW COL; printf "%s;%s" "${ROW#*[}" "$COL")
if [ $x = true ] && [ $y = true ]; then if [ $x = true ] && [ $y = true ]; then
if [ $verbose = true ]; then if [ $verbose = true ]; then

Loading…
Cancel
Save