0

Hey everyone,

I've searched around Google a bit but most places suggest just using "\n" over and over. This gets messy though, for the code and the interface. Is there a built in method for Java that can clear the console?

3
Contributors
3
Replies
4
Views
5 Years
Discussion Span
Last Post by ~s.o.s~
0

You mean to say you want to achieve console clearance through Java code? Or your aim is to just clear console screen not considering the java code?

0

There is no "pure Java" way of doing that. There are a couple of "curses" bindings floating around for Java but that's it. The mess of outputting a bunch of line feeds is nothing compared to considering using a full fledged JNI-dependent third party library just for a better console support.

But if you still insist, I'll leave this here. http://sourceforge.net/projects/javacurses/

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.