mirror of
https://github.com/p-ranav/indicators.git
synced 2025-12-12 01:18:52 +08:00
Update README.md
This commit is contained in:
@@ -51,7 +51,7 @@ int main() {
|
|||||||
Here's the general structure of a progress bar:
|
Here's the general structure of a progress bar:
|
||||||
|
|
||||||
```
|
```
|
||||||
{prefix_text} {start} {fill} {lead} {remaining} {end} {percentage} [{elapsed}<{remaining}?] {postfix_text}
|
{prefix} {start} {fill} {lead} {remaining} {end} {percentage} [{elapsed}<{remaining}?] {postfix}
|
||||||
^^^^^^^^^^^^^ Bar Width ^^^^^^^^^^^^^^^
|
^^^^^^^^^^^^^ Bar Width ^^^^^^^^^^^^^^^
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -286,7 +286,7 @@ int main() {
|
|||||||
Here's the general structure of a progress spinner:
|
Here's the general structure of a progress spinner:
|
||||||
|
|
||||||
```
|
```
|
||||||
{prefix_text} {spinner} {percentage} [{elapsed}<{remaining}] {postfix_text}
|
{prefix} {spinner} {percentage} [{elapsed}<{remaining}] {postfix}
|
||||||
```
|
```
|
||||||
|
|
||||||
ProgressSpinner has a vector of strings: `spinner_states`. At each update, the spinner will pick the next string from this sequence to print to the console. The spinner state can be updated similarly to ProgressBars: Using either `tick()` or `set_progress(value)`.
|
ProgressSpinner has a vector of strings: `spinner_states`. At each update, the spinner will pick the next string from this sequence to print to the console. The spinner state can be updated similarly to ProgressBars: Using either `tick()` or `set_progress(value)`.
|
||||||
|
|||||||
Reference in New Issue
Block a user