File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes ASCII Progress bar on console - How? 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 » Beginning Java
Reply locked New topic
Author

ASCII Progress bar on console - How?

Faisal Ahmad
Ranch Hand

Joined: Aug 31, 2006
Posts: 344

Hi!
I am trying to write code to test my abilities in Threads. Being an RHCE, I thought to make a console progress bar like we see during Linux installation. For those that are curious to know, here is an example:


My idea is to solve it like Producer-consumer problem. Any further ideas?
Thanks for your help.
PS: Instead of real-time installation scenario, we can go with filling up some buffer and show the progress. Currently, Im stuck at showing only * continuously. I would like to see some numerical % at the beginning. Please look into the image above.
marc weber
Sheriff

Joined: Aug 31, 2004
Posts: 11343

Originally posted by Faisal Pasha:
...Currently, Im stuck at showing only * continuously. I would like to see some numerical % at the beginning...

Can you show us your code for this part?


"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org
marc weber
Sheriff

Joined: Aug 31, 2004
Posts: 11343

Please don't cross-post. People don't like to volunteer their time responding to a question and then find it's already been answered in another forum.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: ASCII Progress bar on console - How?
 
Similar Threads
Progress bar hangs out.
Progress bar
OutputStream implementation
Splitting the output console - possible?
how we relate a progress bar with our program