This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

java version of clrscr()?

 
Ankur Jain
Ranch Hand
Posts: 44
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
is there a method in java equiv. to clrscr() in C/C++?
 
Jeff Bosch
Ranch Hand
Posts: 805
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Stan James
(instanceof Sidekick)
Ranch Hand
Posts: 8791
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Stefan Wagner
Ranch Hand
Posts: 1923
Linux Postgres Database Scala
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That will work, if you get the ansi.sys file from somewhere, and load it, for at least win2k.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic