Updated README

This commit is contained in:
Pranav Srinivas Kumar
2019-12-16 09:31:10 -06:00
parent e6ae6c5513
commit 2edbccce9c

View File

@@ -226,6 +226,15 @@ Are you in need of a smooth block progress bar using [unicode block elements](ht
</p>
```cpp
#include <indicators/block_progress_bar.hpp>
#include <thread>
#include <chrono>
int main() {
// Hide cursor
std::cout << "\e[?25l";
indicators::BlockProgressBar bar;
// Configure the bar
@@ -243,6 +252,12 @@ Are you in need of a smooth block progress bar using [unicode block elements](ht
break;
std::this_thread::sleep_for(std::chrono::milliseconds(50));
}
// Show cursor
std::cout << "\e[?25h";
return 0;
}
```
# Progress Spinner