Updated sample

This commit is contained in:
Pranav Srinivas KumaR
2019-12-03 22:01:56 -06:00
parent d3d49abae8
commit bdbef569ea

View File

@@ -16,7 +16,7 @@ int main() {
// As configured, the bar will look like this:
//
// [■■■■■■■■■■■■■■■■■■■■--------] 70%
// [■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■-------------] 70%
//
//
@@ -34,6 +34,13 @@ int main() {
"Watching paint dry"
};
// Let's say you want to append some status text to the right of the progress bar
// You can use bar.append_text(...) to append text to the right
//
// [■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■-------------] 70% Finding a replacement engineer
// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
//
auto job = [&bar, &index, &status_text]() {
while (true) {
if (bar.completed()) {