Replicate the [portage package management] (https://wiki.gentoo.org/wiki/Portage) cursor for Linux commands.
Simple bash script that will run any command in the background and write out a spinning cursor while the program runs. Note your command runs as is and stdout, stderr is left untouched.
basic example.
./portage_cursor.sh sleep 10
throwing away your program's stdout/stderr so you can watch the cursor
./portage_cursor.sh sleep 10 ; echo "hello" &> /dev/null
preserving your program's stdout/stderr to a file
./portage_cursor.sh ( sleep 10 ; echo "hello" ) &> output.txt