Boost logo

Boost :

From: Toon Knapen (toon.knapen_at_[hidden])
Date: 2001-11-29 10:27:14


Would it be possible to get rid of the leading `\n` in
_os << "\n0% 10 20 30 40 50 60 70 80 90 100%\n"
in the progress_display. In some cases I do not want the newline.

Even better would be that the constructor would take three extra string
arguments. The first string will be the leading string for the
scale-numbers, the second the leading string for the scale, the third
for the 'stars'.
Thus instead of the above, something like :

_os << lead1 << "0% 10 20 30 40 50 60 70 80 90 100%\n";
_os << lead2 << "|----|----|----|----|----|----|----|----|----|----|" <<
lead3 << std::endl;

with the constraint that lead1.lenth() == lead2.length() ==
lead3.length() of course.
This way, one could e.g. have following output :

energy remaining 0% 10 20 30 40 50 60 70 80 90 100%
  x 10KJ |----|----|----|----|----|----|----|----|----|----|
                  ******************************


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk