Cursor bouncing around terminal

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
430 views
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Nov 16, 2011

An explanation of how the cursor bouncing trick works.

UPDATE: I changed what I posted to the feed to the below command, which avoids the use of the pv command:

yes $COLUMNS $LINES|awk 'BEGIN{x=y=e=f=1}{if(x==$1||!x){e*=-1};if(y==$2||!y){f*=-1};x+=e;y+=f;printf "\033[%s;%sH",y,x;system("sleep .02")}'

Please note that in order to quit out of this you will probably need to press Ctrl-z to suspend the process and then run kill %1 to kill it.


Get more tips at: http://www.climagic.org/

  • likes, 2 dislikes

Link to this comment:

Share to:
see all

All Comments (0)

Sign In or Sign Up now to post a comment!
Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more