Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

ASCII Progress bar on console - How?

 
Ranch Hand
Posts: 358
Firefox Browser Redhat Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Sheriff
Posts: 11343
Mac Safari Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Mac Safari Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Consider Paul's rocket mass heater.
    Bookmark Topic Watch Topic
  • New Topic