Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # Written by Locutus for bash demonstration.
- rotateCursor()
- {
- case $toggle
- in
- 1)
- echo -n $1" \ "
- echo -ne "\r"
- toggle="2"
- ;;
- 2)
- echo -n $1" | "
- echo -ne "\r"
- toggle="3"
- ;;
- 3)
- echo -n $1" / "
- echo -ne "\r"
- toggle="4"
- ;;
- *)
- echo -n $1" - "
- echo -ne "\r"
- toggle="1"
- ;;
- esac
- }
- while [ 0 ]
- do
- rotateCursor " Spinning around happily"
- sleep 1
- done
Add Comment
Please, Sign In to add comment