navid/veins / commit
685e42af51e0
Navid M <navidmomtahen@gmail.com> · 2026-11-28
parents: a7846673f664
Browse files at this commit · Download source
--- a/.vnexclude+++ b/.vnexclude@@ -1,3 +1,4 @@+Testing **/Testing/Temporary/* *.pyc .vscode--- a/xveins/src/core/common.cpp+++ b/xveins/src/core/common.cpp@@ -840,20 +840,27 @@ const std::size_t filled = std::min<std::size_t>( width, static_cast<std::size_t>((static_cast<unsigned long long>(done_) * width) / total_));- if (filled > 0) {+ line << "[";+ if (filled >= width) { if (color) line << "\x1b[32m";- for (std::size_t i = 0; i < filled; ++i)- line << "\u2588";- }- if (filled < width) {+ for (std::size_t i = 0; i < width; ++i)+ line << "=";+ } else {+ const std::size_t head = filled == 0 ? 1 : filled; if (color)- line << "\x1b[2m";- for (std::size_t i = filled; i < width; ++i)- line << "\u2591";+ line << "\x1b[32m";+ for (std::size_t i = 0; i + 1 < head; ++i)+ line << "=";+ line << ">";+ if (color)+ line << "\x1b[0m";+ for (std::size_t i = head; i < width; ++i)+ line << " "; } if (color) line << "\x1b[0m";+ line << "]"; const std::size_t percent = std::min<std::size_t>( 100, static_cast<std::size_t>((static_cast<unsigned long long>(done_) * 100) / total_)); if (color)