clear the screen in console input [Archive] - C Board

PDA

View Full Version : clear the screen in console input


enggas
07-22-2002, 10:53 PM
I am wondering how can I clear in a console application under Linux or Unix environment?

enggas
07-22-2002, 10:54 PM
sorry, I was saying "clear the screen" in last post...

neethimohanm
07-23-2002, 05:12 AM
Try this command to clear the screen

system("clear")

enggas
07-23-2002, 12:04 PM
I got this error when I use system('clear');


main.cc: In function `int main (int, char **)':
main.cc:98: character constant too long
main.cc:98: cannot convert `int' to `const char *' for argument `1' to
`system (const char *)'


any help?

enggas
07-23-2002, 12:06 PM
Oh I used ' instead of ".

It is working now
thanks