Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, libarchive.org for more info) to build successfully.

Commit 52fa8335 authored by Rob Swindell's avatar Rob Swindell 💬
Browse files

Condition newline before progress display

Sometimes the progress meter (e.g. during file text searches) appears at a column offset > 0 and doesn't look good. Fix that.
parent cb4067ec
Pipeline #2362 passed with stage
in 9 minutes and 12 seconds
......@@ -1403,6 +1403,7 @@ void sbbs_t::progress(const char* text, int count, int total, int interval)
if(text == NULL) text = "";
float pct = total ? ((float)count/total)*100.0F : 100.0F;
SAFEPRINTF2(str, "[ %-8s %4.1f%% ]", text, pct);
cond_newline();
cursor_left(backfill(str, pct, cfg.color[clr_progress_full], cfg.color[clr_progress_empty]));
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment