mirror of
https://github.com/p-ranav/indicators.git
synced 2025-12-15 20:08:53 +08:00
Updated bar example
This commit is contained in:
10
test/bar.cpp
10
test/bar.cpp
@@ -7,14 +7,14 @@ int main() {
|
||||
// Configure progress bar
|
||||
bar.bar_width(50);
|
||||
bar.start_with("[");
|
||||
bar.fill_progress_with("=");
|
||||
bar.lead_progress_with(">");
|
||||
bar.fill_remainder_with(" ");
|
||||
bar.end_with("]");
|
||||
bar.fill_progress_with("■");
|
||||
bar.lead_progress_with("■");
|
||||
bar.fill_remainder_with("-");
|
||||
bar.end_with(" ]");
|
||||
|
||||
// As configured, the bar will look like this:
|
||||
//
|
||||
// [=================> ] 70%
|
||||
// [■■■■■■■■■■■■■■■■■■■■ --------] 70%
|
||||
//
|
||||
//
|
||||
|
||||
|
||||
Reference in New Issue
Block a user