How to print charaters on the screen at the same place?
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   gartner_michael
Posted On:   Saturday, March 24, 2001 07:49 AM

I want to print characters on the screen at the same place. Imagine a countdown where you do not want the numbers to be printed one after the other nor one under the other but at the same place.

Re: How to print charaters on the screen at the same place?

Posted By:   Tim_Rohaly  
Posted On:   Thursday, April 19, 2001 03:05 PM

Most terminal emulators interpret carriage return
properly. The escape character for this is
in Java.

for (int i=10; i>=0; i--) {
System.out.print("
"+i+" ");
Thread.sleep(1000);
}

Alternatively, you could use backspace, which can be
represented as .
About | Sitemap | Contact