This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

clear the CIO console via code

I use printf() to check the progress of my code. 

for example a

printf("done");

at the end. Works like a charm.

But after some runs the CIO console is quite full of text and I'm looking for another method, than using the "clear console" button.

I tried the standard C command under windows

#include stdlib.h

system("clr"); 

but I get this error 

unresolved symbol _system, first referenced in ./main.obj

  • Unfortunately, there is no function you can execute on the target system which causes the CCS Console view to clear.

    Thanks and regards,

    -George

  • Patrick Herda said:

    ...

    But after some runs the CIO console is quite full of text and I'm looking for another method, than using the "clear console" button.

    ...

    Just printing a bunch of newlines might work until you find a better solution, e.g.

    for(int i=0; i<1000; ++i) { printf("\n\n\n\n"); }