Terminal control/Clear the screen: Difference between revisions

Content added Content deleted
No edit summary
Line 53: Line 53:
printf("%c[2J",27);
printf("%c[2J",27);
}</lang>
}</lang>

Here is the cheaty way no one likes
only works on windows
<lang C>
#include <stdio.h>
#include <stdlib.h>

void main()
{
printf ("clearing screen");
getchar();
System("cls");
}


=={{header|C sharp|C#}}==
=={{header|C sharp|C#}}==