Wednesday 16 November 2011

How do you clear the screen with the ANSI driver? in C programming

How do you clear the screen with the ANSI driver?

This action can be accomplished with <esc>[2J. Here is a program that demonstrates this point:

#include <stdio.h>
main()
{
printf( “%c[2JNice to have an empty screen.\n” , 27 );
return( 0 );
}

Cross Reference:


None

No comments:

Post a Comment