Clear console in Java

Is there a way to clear ALL the COMMAND CONSOLE TEXT text (i.e. all the output of my class AND the output of everything that is output from other running programs (not always Java)) that started the Java VM?

+2


source to share


2 answers


The process for clearing the console will be VERY device dependent (ie Windows cmd will be very different from VT100 or Linux xterm. You may need something like Curses for Java .



+3


source


Instead of writing to the console, have you tried to write the information you need from your application to a separate file instead of the console?



0


source







All Articles