diff options
| author | Julian Andres Klode <jak@debian.org> | 2024-04-19 17:20:31 +0000 |
|---|---|---|
| committer | Julian Andres Klode <jak@debian.org> | 2024-04-19 17:20:31 +0000 |
| commit | 70103339b017a42ea71a56c27c221a79ccc3116f (patch) | |
| tree | a1797800fb7ebeb1bdd8833d3bcc2503438de4f4 /apt-private/acqprogress.cc | |
| parent | 633f6d67a28b375cf1f225f14d3c926e618d46af (diff) | |
| parent | 28ec28746d8633b9c4b67cd6d1b603a1da57f436 (diff) | |
Merge branch 'color-framework' into 'main'
Introduce APT::Configuration::Color, --color option and documentation for color.
See merge request apt-team/apt!342
Diffstat (limited to 'apt-private/acqprogress.cc')
| -rw-r--r-- | apt-private/acqprogress.cc | 5 |
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; |
