mirror of
https://github.com/p-ranav/indicators.git
synced 2025-12-16 04:18:51 +08:00
Update README.md
This commit is contained in:
@@ -24,7 +24,7 @@ int main() {
|
|||||||
// [■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■-------------] 70%
|
// [■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■-------------] 70%
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
|
|
||||||
std::atomic<size_t> index{0};
|
std::atomic<size_t> index{0};
|
||||||
std::vector<std::string> status_text =
|
std::vector<std::string> status_text =
|
||||||
{
|
{
|
||||||
@@ -35,6 +35,13 @@ int main() {
|
|||||||
"Crossing fingers",
|
"Crossing fingers",
|
||||||
"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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user