If your terminal supports making the cursor invisible, you can do so with the curs_set
function:
curs_set(0);
If your terminal doesn't support making it invisible, curs_set
will return ERR
, and your only option will be to try to move the cursor to the least distracting location possible (In this case, just keeping the cursor on top of the ball should be suitable).