You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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{"["} to indicators::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).
The text was updated successfully, but these errors were encountered:
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 start_length variable to be working properly (best to handle it in the constructor imho).
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).
The text was updated successfully, but these errors were encountered: