summaryrefslogtreecommitdiff
path: root/apt-private/acqprogress.cc
diff options
context:
space:
mode:
authorJulian Andres Klode <julian.klode@canonical.com>2024-04-19 16:05:08 +0200
committerJulian Andres Klode <julian.klode@canonical.com>2024-04-19 16:58:24 +0200
commite07450beb5a474ec3c099ff3eb329892b040d04c (patch)
tree12ec39caf852bec96cc01e85fc77cf868a548751 /apt-private/acqprogress.cc
parent58ee0fabc9028fcdf86faab3bb9c1db2b27e3644 (diff)
Use APT::Configuration::color to apply color to output
Diffstat (limited to 'apt-private/acqprogress.cc')
-rw-r--r--apt-private/acqprogress.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/apt-private/acqprogress.cc b/apt-private/acqprogress.cc
index 1f5acdd97..b4b16e6a9 100644
--- a/apt-private/acqprogress.cc
+++ b/apt-private/acqprogress.cc
@@ -9,6 +9,7 @@
// Include files /*{{{*/
#include <config.h>
+#include <apt-pkg/aptconfiguration.h>
#include <apt-pkg/acquire-item.h>
#include <apt-pkg/acquire-worker.h>
#include <apt-pkg/acquire.h>
@@ -281,14 +282,14 @@ bool AcqTextStatus::Pulse(pkgAcquire *Owner)
// Draw the current status
if (_config->FindB("Apt::Color", false) == true)
- out << _config->Find("APT::Color::Yellow");
+ out << APT::Configuration::color("Yellow");
if (LastLineLength > Line.length())
clearLastLine();
else
out << '\r';
out << Line << std::flush;
if (_config->FindB("Apt::Color", false) == true)
- out << _config->Find("APT::Color::Neutral") << std::flush;
+ out << APT::Configuration::color("Neutral") << std::flush;
LastLineLength = Line.length();
Update = false;