Open tgalaj opened 3 years ago
I suppose I could add the carriage return to the progress bar start
string always. That way, you don't need to.
I can do this and push an update.
Please this if this commit fixes it https://github.com/p-ranav/indicators/commit/4790bfddcad6ff3bd814584083e7490c096a3a2b
I'll reopen this issue as the problem still emerges. I found out that you also need to increase the size by 1 (size of "\r" string that you output to the os stream) of the _startlength variable to be working properly (best to handle it in the constructor imho).
there is still this problem + I tried to use carriage return, but it did not give results
option::Start{"\r["},
- not working
fix please <3
Hi,
Recently I was using the indicators library to print some progress bars inside my pet projects. Everything was working fine until I replaced the machines. On the new machine progress bars are not printed correctly:
Progress bar is configured in the code as follows:
I thought that it has something to do with the carriage return. After that, I changed
indicators::option::Start{"["}
toindicators::option::Start{"\r["}
and it worked like a charm:However, I don't like such a workaround. Is it something bad with the indicators library or am I doing something wrong? (I'm using the newest version of the single header indicators lib).