Skip to content

Instantly share code, notes, and snippets.

@wizact
Created February 5, 2020 08:07
Show Gist options
  • Save wizact/3298ab95e40f8a5529b87e1159fd5295 to your computer and use it in GitHub Desktop.
Save wizact/3298ab95e40f8a5529b87e1159fd5295 to your computer and use it in GitHub Desktop.
Move cursor around
x=20
y=20
clear;
for x in {0..150}; do
y=`echo "12+6*s($x/6)"|bc -l|cut -d. -f 1`
echo -en \\033[$y\;"$(($x/2))"HX;
sleep 0.1;
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment