"Scirious" <sc******@scirious.com> wrote in message
news:f8********************@giganews.com...
People, is it possible to control command prompt text output in Java as it
is in C? I mean, cam I print a line, them erase that line and repreint it
in the same line?
When you do this in C, you're usually using a terminal control library,
such as Curses (
See
http://en.wikipedia.org/wiki/Curses_...ing_library%29)
There's no cross-platform way to do this in Java, because some platforms
that Java runs on doesn't support erasing an already printed line (think
mainframes with no screens, but with line-printer outputs).
If you don't care about those platforms, you can use JNI to interface
with Curses (or any other library)from within Java.
- Oliver