As zim1985 said, please don't post in very old threads.
Open your own topic with whatever you're having trouble with.
Clearing The Screen?Can this be done?
33 Replies - 80447 Views - Last Post: 18 April 2010 - 11:18 PM
#32
Re: Clearing The Screen?
Posted 05 March 2010 - 03:14 PM
aime_methe, on 16 July 2007 - 12:07 PM, said:
Actualy there is a clear screen command, well i dont know if it works for Java but it works for J# wich is another form of Java :
maybe it works in Java, dont know
System.Console.Clear();
maybe it works in Java, dont know
No but
System.console().printf("\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n");
will doit
#33 Guest_supernewbie*
Re: Clearing The Screen?
Posted 18 April 2010 - 11:14 PM
edvella, on 18 February 2009 - 06:16 AM, said:
I came here today looking for a command to clear the screen, with the hope of making my assignment program look better.
I searched through a lot of forums and it seems that this simple question has gone unanswered for a long time.
So I took a good look at my ASCII list, and surely enough there is a mention of a code for form feed. Then I just tried using \f in Java and it is working wonders.
So if anyone still cares, try this:
I searched through a lot of forums and it seems that this simple question has gone unanswered for a long time.
So I took a good look at my ASCII list, and surely enough there is a mention of a code for form feed. Then I just tried using \f in Java and it is working wonders.
So if anyone still cares, try this:
System.out.println("\f");
You can use "\f" only 'cause you r using BlueJ, and why would you want to do anything like that with console anyway??? if you are thinking about programming anything that is needing gui you definitely don't wanna use console for it
#34
Re: Clearing The Screen?
Posted 18 April 2010 - 11:18 PM
Why oh WHY do people keep necro-ing this thread.
Ending it.
Ending it.

New Topic/Question
This topic is locked




MultiQuote


|