-
clear screen.
i want to ask.. what method does java has like
the method that we used to declare in C that clears a screen conolse... (clrscr())
coz im writing a program right now.. and i wrote a temporary block of code.. that show the value
of my objects.. (just for checking)
its just that i want to write a command that can clear a the screen while the program is running..
instead of re-executing the program again and again
-
Re: clear screen.
Unfortunately, Java doesn't have a clear screen equivalent command. The only choices are JNI, or simply outputting a lot of new-lines to have a pseudo-cleared screen.
-
1 Attachment(s)
Re: clear screen.
clrscr() is not standard C! Do not use it! If you want a solution, then here is a Windows only Solution, this is why you just don't do it!
Chris
-
Re: clear screen.
oh sorry for that chris....
-
Re: clear screen.
Chronoz are you at university?
-
Re: clear screen.
no chris... im just in a an institute... informatics.. institute... branch of an acedemy
-
Re: clear screen.
Ah ok then :)
You have a teacher that says Allgorhythm too ;)
Chris
-
Re: clear screen.
ahh you mean my signature? ahhh.. its just my own idea... coz i have a liitle musical background.. ahhahahaha
-
Re: clear screen.
ahh anyway chris.. how can i import those files that you gave me .. after i extract it?
in what particular folder should i put each of those files?
-
Re: clear screen.
Stick the dll and the class files in the same folder as your class then just call Console.clr();
Chris
-
Re: clear screen.
tnx chris!!!!!!!!!!! \m/ hehehe