Comments (6)
Related to #42
from indicators.
Should be fixed now. Thanks for reporting this issue.
from indicators.
Here you go: https://github.com/p-ranav/indicators/releases/tag/v1.9
from indicators.
Can you paste your code here? (just the relevant bits)
from indicators.
I wrote a small example that repeats my problem
// prepare progress bar
auto prepare_p = [](ProgressBar *p, const std::string &prefix){
p->set_option(option::PrefixText{prefix});
p->set_option(option::Start{""});
p->set_option(option::Fill{""});
p->set_option(option::Lead{""});
p->set_option(option::Remainder{""});
p->set_option(option::End{""});
p->set_option(option::BarWidth{0});
};
ProgressBar p1, p2;
prepare_p(&p1, "Progress #1");
prepare_p(&p2, "Progress #2");
MultiProgress<ProgressBar, 2> mp(p1, p2);
std::string some_text[] = {"foo", "bar", "independence", "beta", "alfa"};
std::string dynamic_text;
// first pb with static postfix text
p1.set_option(option::PostfixText{"Static text"});
// second pb with dynamic postfix text
for (auto &t: some_text) {
dynamic_text += t + " ";
p2.set_option(option::PostfixText{dynamic_text});
mp.set_progress<0>(0);
std::this_thread::sleep_for(std::chrono::seconds(1));
}
// update postfix to little text for pb #2
p2.set_option(option::PostfixText{"abcd"});
mp.set_progress<0>(0);
Result:
Progress #1 Static text···········
Progress #2 abcd··························································
dot -- is space
from indicators.
Should be fixed now. Thanks for reporting this issue.
Thank! How long to wait for a release with this fix?
from indicators.
Related Issues (20)
- print to console HOT 2
- How to let indicator don't cover the print message? HOT 3
- Can i re-use a prior defined bar rather than define two separated bars? HOT 3
- [question] An `std::range_error` exception in `intermediate_progress_bar.cpp`.
- [bug] Cannot compile the sample codes with MSVC compiler on Windows.
- Passing boost::optional ProgressBar handle (from inside DynamicProgress) to function for mutation
- conversion to ‘float’ from ‘double’ may alter its value [-Werror=float-conversion]
- Block progress bar not working
- Library does not compile. HOT 4
- C++17 deprecated codecvt_utf8 breaks build on MSVC with C++20 HOT 3
- continuously spinning line appears to be missing
- Write DynamicProgress bar to stderr
- indicators changes locale HOT 1
- Dynamically set MaxProgress during iteration
- setlocale in utf8_decode will throw std::logic_error when setlocale returns NULL
- In Windows console, the progress bar does not stay on the same line HOT 3
- Progress bar spamming in new lines depending on window width
- DynamicProgress should take ownership over progressbars HOT 3
- DynamicProgress progress bar ordering
- IndeterminateProgressScaleWriter loops forever when Lead is set to ""
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from indicators.