I want to clear the output of a C program produced with printf statements. I want to clear only one line, for example:
[source]
printf(\"AAAAAAAAAAAAAA\\
If you are using X-Term compatibles (Gnome Terminal included), then print the following
printf("\033[2J");
or
cout << "\033[2J";
where \033 is the escape character in ASCII and [2J is the specific action (clear).
\033
[2J