Browse Source

more POSIX

main
deicidus 2 years ago
parent
commit
75e8c75e2a
  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=$(stty -echo; printf "\033[6n"; IFS=';' read -r ROW COL; stty echo; printf "%s;%s" "${ROW#*[}" "${COL}") position=$(stty -echo; printf "\033[6n"; (trap 'exit 142' ALRM; sh -c 'sleep 0.1; kill -ALRM $$' &) IFS=';' read -r ROW COL; stty echo; 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