[ILUG] Clearing the CONSOLE in Linux

Raf turiel at RedBrick.DCU.IE
Fri Mar 24 13:56:21 GMT 2000


On Fri, 24 Mar 2000, Vinayak Risbud wrote:

> Hi Friends,
>            Kindly inform me how to clear the console of Linux
> using C .

I presume you mean clear the screen? Try:

printf("\033[H\033[J\r\n");


Raf





More information about the ILUG mailing list