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)

2

2 Answers 2

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.

Sign up to request clarification or add additional context in comments.

Comments

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?

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.