tsume
The Pervy Sage
I've this project I'm doing where I'm going to have go through about 500GB of data and doing comparisons to another database which is about 1TB database where a single file is about 70KB. So yeah, this is going to take time. Though I've been printing out statements to make sure everything which I need to working is being done correctly, I'm now about to clean that up so only import errors are reported, which is rare.
So I thought it would best to print out something which shows that the program is busy. I was thinking of a 3 dots print out which would be something like this:
.
..
...
On the same line, each dot gets printed out every second or so gets cleared out then starts printing the dots again. Any idea of how to approach? This is what I've gotten to:
Which does do what I want it to do as the "\r" does not clear line (just wanted to show where I'm going at). So I need something to clear the line and not the whole terminal screen.
Thanks
So I thought it would best to print out something which shows that the program is busy. I was thinking of a 3 dots print out which would be something like this:
.
..
...
On the same line, each dot gets printed out every second or so gets cleared out then starts printing the dots again. Any idea of how to approach? This is what I've gotten to:
Code:
while(true){
System.out.print(".");
Thread.sleep(1000);
System.out.print(".");
Thread.sleep(1000);
System.out.print(".");
Thread.sleep(1000);
System.out.print("\r");
}
Thanks
Last edited: