From bdbef569eaffdc34d266c1a75299dfabfb2d2c82 Mon Sep 17 00:00:00 2001 From: Pranav Srinivas KumaR Date: Tue, 3 Dec 2019 22:01:56 -0600 Subject: [PATCH] Updated sample --- test/bar.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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()) {