aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2022-09-13 16:57:30 +0200
committerGitHub <noreply@github.com>2022-09-13 16:57:30 +0200
commitb56906aae025b467111e67ed7b1bab485b3dbba5 (patch)
treebdc5dbda95f454bdd4a685062ea5f525dff25384
parent0f64bf445a229c4f5ce19dc19a552f58701ca1ca (diff)
parentc6ff33ff5c83a546fc6e82055aa04abfe41011dc (diff)
Merge pull request #7032 from edolstra/stop-progress-bar
RunPager: Stop the progress bar
-rw-r--r--src/libmain/shared.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libmain/shared.cc b/src/libmain/shared.cc
index 52b75f757..c1cf38565 100644
--- a/src/libmain/shared.cc
+++ b/src/libmain/shared.cc
@@ -4,6 +4,7 @@
#include "gc-store.hh"
#include "util.hh"
#include "loggers.hh"
+#include "progress-bar.hh"
#include <algorithm>
#include <cctype>
@@ -422,6 +423,8 @@ RunPager::RunPager()
if (!pager) pager = getenv("PAGER");
if (pager && ((std::string) pager == "" || (std::string) pager == "cat")) return;
+ stopProgressBar();
+
Pipe toPager;
toPager.create();