how to make C program blink on screen

#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>

int main() {
    int i;

    for (i = 0; i < 10; i++) {
        printf("Blinking...\n");
        fflush(stdout);
        usleep(500000); // 500,000 microseconds (0.5 seconds) delay
        system("clear"); // Clear the screen
        usleep(500000); // 500,000 microseconds (0.5 seconds) delay
    }

    return 0;
}