If your terminal supports cursor invisibility, you can do this with the curs_set function:
curs_set(0);
If your terminal does not support its invisibility, curs_set will return ERR , and the only option would be to try to move the cursor to the least distracting place (in this case, just holding the cursor at the top of the ball should be appropriate).
source share