There is an old sourceforge project called JCurses that should help you do this. But be warned, it is a little like using nuclear launch codes to swat a fly.
Hey java programmers... can you please help me how to clear the console screen in java. It's the clrscr() in C
you can't clear the console screen in java. i know it's pretty ridiculous, but it's true.
Reply:the only way to clear the screen is to print a ton of new line characters, something like this:
for(int i = 0; i %26lt; 50; i++
{
System.out.println("\n");
}
that's unpretty, unclean and a bit of a hack, but it works
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment