PDA

View Full Version : clear the console window


Jabberwocky
04-23-2006, 06:16 PM
I'm printing to the console window. Is there a way to clear the windows contents before I print again?

lanceA
04-23-2006, 07:56 PM
This has been a major complaint for all Java programmers; there is no Cls or Clear Screen in java. I have found for ALICE the simplest work-around is to go into a LOOP and place a PRINT control statement inside the loop with the PRINT TEXTSTRING left empty. Depending upon the size of your Window 5-10 loops should suffice.

Loop 5 times
Print


Good luck

Jabberwocky
04-24-2006, 07:46 PM
That'll work. Thanks.