forked from lix-project/lix
Merge "libmain: clear display attributes in the multiline progress bar" into main
This commit is contained in:
commit
fa92f41a18
|
@ -356,7 +356,7 @@ std::chrono::milliseconds ProgressBar::draw(State & state, const std::optional<s
|
||||||
line += "]";
|
line += "]";
|
||||||
}
|
}
|
||||||
if (printMultiline && !line.empty()) {
|
if (printMultiline && !line.empty()) {
|
||||||
writeToStderr(filterANSIEscapes(line, false, width) + "\n");
|
writeToStderr(filterANSIEscapes(line, false, width) + ANSI_NORMAL "\n");
|
||||||
state.lastLines++;
|
state.lastLines++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -398,7 +398,7 @@ std::chrono::milliseconds ProgressBar::draw(State & state, const std::optional<s
|
||||||
|
|
||||||
if (printMultiline) {
|
if (printMultiline) {
|
||||||
if (state.lastLines < (height -1)) {
|
if (state.lastLines < (height -1)) {
|
||||||
writeToStderr(filterANSIEscapes(activity_line, false, width) + "\n");
|
writeToStderr(filterANSIEscapes(activity_line, false, width) + ANSI_NORMAL "\n");
|
||||||
state.lastLines++;
|
state.lastLines++;
|
||||||
} else moreActivities++;
|
} else moreActivities++;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue