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/
Link to this comment:
All Comments (0)