Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
    Bookmark Topic Watch Topic
  • New Topic

ASCII Progress bar on console - How?

 
Faisal Ahmad
Ranch Hand
Posts: 355
Chrome Java Redhat
  • Mark post as helpful
  • send pies
  • Report post to moderator
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
Posts: 11343
Java Mac Safari
  • Mark post as helpful
  • send pies
  • Report post to moderator
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?
 
marc weber
Sheriff
Posts: 11343
Java Mac Safari
  • Mark post as helpful
  • send pies
  • Report post to moderator
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.
 
    Bookmark Topic Watch Topic
  • New Topic