wood burning stoves 2.0*
The moose likes Java in General and the fly likes java version of clrscr()? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "java version of clrscr()?" Watch "java version of clrscr()?" New topic
Author

java version of clrscr()?

Ankur Jain
Ranch Hand

Joined: Sep 02, 2003
Posts: 44
is there a method in java equiv. to clrscr() in C/C++?


Ankur<br />SCJP,SCBCD
Jeff Bosch
Ranch Hand

Joined: Jul 30, 2003
Posts: 804
Not really. You can print a bunch of blank lines, or you can call an underlying system call. If you do the latter, you lose platform independence. The former, printing blank lines, is only good for dos-window/console type of output. For a GUI, you have other options that are particular to each component.


Give a man a fish, he'll eat for one day. Teach a man to fish, he'll drink all your beer.
Cheers, Jeff (SCJP 1.4, SCJD in progress, if you can call that progress...)
Stan James
(instanceof Sidekick)
Ranch Hand

Joined: Jan 29, 2003
Posts: 8791
This has come up before but I don't recall the answer ... Can you load the old ANSI.SYS handling into modern Windows command windows? That lets you use a set of strange looking escape sequences to clear screen, change color, move the cursor, etc.


A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
Stefan Wagner
Ranch Hand

Joined: Jun 02, 2003
Posts: 1923

That will work, if you get the ansi.sys file from somewhere, and load it, for at least win2k.


http://home.arcor.de/hirnstrom/bewerbung
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: java version of clrscr()?
 
Similar Threads
clrscr() function?
in java where is clrscr() function
clrscr() in JAVA ???
How to clear screen (clrscr) in java?
Clrscr() Equivalent function Java