• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

System.out

 
Michael Remillard
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi.
I would like to know what method (if available) allows me to do an equivalent of a "C" clrscr() when I am writing to the System.out with methods like "print()" or "println()".
Is this available or is java so caught up in streams that this concept just doesn't have its place here?

Anyway, let me know.
 
Joel McNary
Bartender
Posts: 1840
Eclipse IDE Java Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Unfortunately, Java does not support anything like this. You may have redirected System.out to something like a file or a custom textbox. As such, the streams are blind to things like "screen size."
You could write your own (or find) a java-console that you could clear (or write your own method to print a lot of newlines), but as far as I know that is the extent to which you can do something like this.
 
Michael Remillard
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks. I was beginning to get that feeling...
Oh well...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic