mirror of
https://github.com/p-ranav/indicators.git
synced 2025-12-16 04:18:51 +08:00
Update README
This commit is contained in:
14
README.md
14
README.md
@@ -39,8 +39,6 @@ int main() {
|
|||||||
bar.end_bar_with("]");
|
bar.end_bar_with("]");
|
||||||
bar.set_postfix_text("Getting started");
|
bar.set_postfix_text("Getting started");
|
||||||
bar.set_foreground_color(indicators::Color::GREEN);
|
bar.set_foreground_color(indicators::Color::GREEN);
|
||||||
bar.hide_elapsed_time();
|
|
||||||
bar.hide_remaining_time();
|
|
||||||
|
|
||||||
// Update bar state
|
// Update bar state
|
||||||
|
|
||||||
@@ -80,8 +78,6 @@ int main() {
|
|||||||
bar.end_bar_with("]");
|
bar.end_bar_with("]");
|
||||||
bar.set_postfix_text("Getting started");
|
bar.set_postfix_text("Getting started");
|
||||||
bar.set_foreground_color(indicators::Color::GREEN);
|
bar.set_foreground_color(indicators::Color::GREEN);
|
||||||
bar.hide_elapsed_time();
|
|
||||||
bar.hide_remaining_time();
|
|
||||||
|
|
||||||
// Update bar state
|
// Update bar state
|
||||||
while (true) {
|
while (true) {
|
||||||
@@ -118,8 +114,6 @@ int main() {
|
|||||||
bar.end_bar_with("]");
|
bar.end_bar_with("]");
|
||||||
bar.set_postfix_text("Getting started");
|
bar.set_postfix_text("Getting started");
|
||||||
bar.set_foreground_color(indicators::Color::GREEN);
|
bar.set_foreground_color(indicators::Color::GREEN);
|
||||||
bar.hide_elapsed_time();
|
|
||||||
bar.hide_remaining_time();
|
|
||||||
|
|
||||||
// Update bar state
|
// Update bar state
|
||||||
|
|
||||||
@@ -160,8 +154,6 @@ int main() {
|
|||||||
bar.fill_bar_remainder_with("-");
|
bar.fill_bar_remainder_with("-");
|
||||||
bar.end_bar_with("]");
|
bar.end_bar_with("]");
|
||||||
bar.set_foreground_color(indicators::Color::YELLOW);
|
bar.set_foreground_color(indicators::Color::YELLOW);
|
||||||
bar.hide_elapsed_time();
|
|
||||||
bar.hide_remaining_time();
|
|
||||||
|
|
||||||
// As configured, the bar will look like this:
|
// As configured, the bar will look like this:
|
||||||
//
|
//
|
||||||
@@ -239,8 +231,6 @@ int main() {
|
|||||||
bar.start_bar_with("[");
|
bar.start_bar_with("[");
|
||||||
bar.end_bar_with("]");
|
bar.end_bar_with("]");
|
||||||
bar.set_foreground_color(indicators::Color::WHITE);
|
bar.set_foreground_color(indicators::Color::WHITE);
|
||||||
bar.hide_elapsed_time();
|
|
||||||
bar.hide_remaining_time();
|
|
||||||
|
|
||||||
// Update bar state
|
// Update bar state
|
||||||
auto progress = 0.0f;
|
auto progress = 0.0f;
|
||||||
@@ -274,8 +264,6 @@ int main() {
|
|||||||
spinner.set_postfix_text("Checking credentials");
|
spinner.set_postfix_text("Checking credentials");
|
||||||
spinner.set_foreground_color(indicators::Color::YELLOW);
|
spinner.set_foreground_color(indicators::Color::YELLOW);
|
||||||
spinner.set_spinner_states({"⠈", "⠐", "⠠", "⢀", "⡀", "⠄", "⠂", "⠁"});
|
spinner.set_spinner_states({"⠈", "⠐", "⠠", "⢀", "⡀", "⠄", "⠂", "⠁"});
|
||||||
spinner.hide_elapsed_time();
|
|
||||||
spinner.hide_remaining_time();
|
|
||||||
|
|
||||||
// Update spinner state
|
// Update spinner state
|
||||||
|
|
||||||
@@ -301,8 +289,6 @@ int main() {
|
|||||||
spinner.set_postfix_text("Checking credentials");
|
spinner.set_postfix_text("Checking credentials");
|
||||||
spinner.set_foreground_color(indicators::Color::YELLOW);
|
spinner.set_foreground_color(indicators::Color::YELLOW);
|
||||||
spinner.set_spinner_states({"⠈", "⠐", "⠠", "⢀", "⡀", "⠄", "⠂", "⠁"});
|
spinner.set_spinner_states({"⠈", "⠐", "⠠", "⢀", "⡀", "⠄", "⠂", "⠁"});
|
||||||
spinner.hide_elapsed_time();
|
|
||||||
spinner.hide_remaining_time();
|
|
||||||
|
|
||||||
// Update spinner state
|
// Update spinner state
|
||||||
auto job = [&spinner]() {
|
auto job = [&spinner]() {
|
||||||
|
|||||||
Reference in New Issue
Block a user