Update README.md

This commit is contained in:
Pranav
2019-12-03 21:58:49 -06:00
committed by GitHub
parent d19e8fd2bd
commit 3bf6c8624c

View File

@@ -36,6 +36,13 @@ int main() {
"Porting KSP to a Nokia 3310" "Porting KSP to a Nokia 3310"
}; };
// 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]() { auto job = [&bar, &index, &status_text]() {
while (true) { while (true) {
if (bar.completed()) { if (bar.completed()) {