2

Is there any way to clear the Console?

(I.e. all the output of my class and the output of everything outputted from other programs run before, not always Java)

Ola Ström
  • 4,136
  • 5
  • 22
  • 41
Kryten
  • 3,843
  • 5
  • 37
  • 42

2 Answers2

3

The process of clearing a console is going to be VERY device dependent (i.e. Windows cmd is going to be very different than a VT100 or Linux xterm. You would probably need something like Curses for Java.

Jim Blizard
  • 4,255
  • 28
  • 37
0

Instead of writing to the console have you tried logging the info you need from your app to a separate file instead of the console?

John McG
  • 608
  • 4
  • 10