Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

clering the console

 
Dave Harpster
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Howdy folks,
Is there anyway to clear the console that will work on any platform?
thanks,
dave
 
Cindy Glass
"The Hood"
Sheriff
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, you can println() about 30 time :roll: .
I know - lousy solution. - but it IS platform independant .
 
expired user
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why don't try JAVAW instead of println() 30 times?
 
Cindy Glass
"The Hood"
Sheriff
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Because that would GET RID OF the console (well, sort of - the user could close the console) - not clear it so you get a clean display of the console.
 
Thomas Smets
Ranch Hand
Posts: 111
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When even on MS-environment you can use the Unix commands with
cygwin. You will still have many little assless like some shells do keep listen to the console, hence you program would need to :
java Main > /dev/null </dev/null &
Another option is to start a little program that will do the Runtime.exec(MyCommandLine); !
The first program is started under javaw while the second receives the plateform specific options accordingly !
Have you given a look at ANT ?
Thomas,
(I personnaly like System.out.println("\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n");)
[ April 15, 2002: Message edited by: Thomas SMETS ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic