can somebody write a little example program, how can i clear screen (like CLS in dos) and use colours in text in Linux console (without conio.h)
thanks.
(yes, i canīt speak english well )
can somebody write a little example program, how can i clear screen (like CLS in dos) and use colours in text in Linux console (without conio.h)
thanks.
(yes, i canīt speak english well )
Why not just use curses? It's a lot easier to read.
Code:#include <curses.h> void clrscr() { initscr(); clear(); endwin(); }
Processing error: Stupidity detected.
------------------------------
Dr. Bebop
Windows XP Professional Ed.
Microsoft Visual Studio 6
If you don't care about platform independence, and just want to know the quick and dirty way to clear the screen, make a call to
system("clear");
at the point where you want the program to clear the screen.
starX
www.axisoftime.com