5

I'm trying to create a terminal-based backup program and I'm looking for some C++ code that creates a text-based progress bar. I understand you can implement it yourself with \b but I thought I'd see if there is any well-built implementations already. My favourite implementation of a text-based progress bar is pacman's progress bar on arch linux.

My project is created with C++ (Qt4).

Michael Petrotta
  • 59,888
  • 27
  • 145
  • 179
Will03uk
  • 3,346
  • 8
  • 34
  • 40
  • try ncurses that's a really good library for this, not sure if it has the exact type of bar you want – Jesus Ramos Aug 05 '11 at 02:12
  • @Jesus Ramos, I'm not sure about ncurses; once you use it a small amount, your entire project is an ncurses project. It doesn't co-exist well with std input's and output's – Will03uk Aug 05 '11 at 02:18

1 Answers1

3

The Boost Timer library has a progress timer display.

pmr
  • 58,701
  • 10
  • 113
  • 156