diff --git a/test/bar.cpp b/test/bar.cpp index 978bf94..55ee0f0 100644 --- a/test/bar.cpp +++ b/test/bar.cpp @@ -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()) {