If I just throw in a
printf("\033[?25l");
at the start, to turn the cursor off, it looks fine here (Ubuntu, Gnome terminal)