I\'m interested in clearing the output of a C program produced with printf statements, multiple lines long.
My initial guess was to use
printf(\"ou
In fact, when you capture/redirect your stdout (./program > output.file), there is no way how to remove contents of that file, even printf("\033[2J\033[1;1H"); just adds this sequence of characters into it.