main,progressBar: --force-terminal-mode argument to force progress bar output as if connected to a terminal (#629)

This commit is contained in:
Gwenhael Goavec-Merou
2026-03-13 09:28:54 +01:00
parent 9d6cc15f51
commit 28efd18798
3 changed files with 22 additions and 2 deletions
+2
View File
@@ -12,6 +12,7 @@ class ProgressBar {
public:
ProgressBar(const std::string &mess, int maxValue, int progressLen,
bool quiet = false);
static void setForceTerminalMode();
void display(int value, char force = 0);
void done();
void fail();
@@ -24,6 +25,7 @@ class ProgressBar {
bool _quiet;
bool _first;
bool _is_tty;
static bool _force_terminal_mode;
};
#endif