I'm trying to make a simple 16*16 terminal display for a C project that uses something like this loop:
for(i = 1; i <= 256; i++) {
    printf("%c ", output[i-1]);
    if(i % 16 == 0) {
        printf("\n");
    }
}
To display something like this (but twice as big):
* * * * * * * *
* * * * * * * *
* * * * * * * *
* * * * * * * *
* * * * * * * *
* * * * * * * *
* * * * * * * *
* * * * * * * *
The problem is, this obviously just prints a new display below the previous one each time the display is refreshed, when I need to print over it instead. The carriage return \r only writes over the previous line, while I need to write over the previous 16.
Is there any way to do this in C? I'm using Windows so I don't know if ncurses is an option.