diff options
author | Julian Andres Klode <julian.klode@canonical.com> | 2024-04-15 17:45:47 +0200 |
---|---|---|
committer | Julian Andres Klode <julian.klode@canonical.com> | 2024-04-19 20:49:05 +0200 |
commit | 3f5e368ba800f823b36931ced783d450ec621264 (patch) | |
tree | 58620e3cd02dbf1af9cee5c31dfa824583c5862d | |
parent | dc3f3ec100f275e5a802e59fd160f75cd262845f (diff) |
apt update: Show upgradable package count in bold
-rw-r--r-- | apt-private/private-output.cc | 1 | ||||
-rw-r--r-- | apt-private/private-update.cc | 6 | ||||
-rw-r--r-- | doc/examples/configure-index | 1 |
3 files changed, 7 insertions, 1 deletions
diff --git a/apt-private/private-output.cc b/apt-private/private-output.cc index c2e936d2c..d5720f41a 100644 --- a/apt-private/private-output.cc +++ b/apt-private/private-output.cc @@ -96,6 +96,7 @@ bool InitOutput(std::basic_streambuf<char> * const out) /*{{{*/ } else { // Colors _config->CndSet("APT::Color::Highlight", "\x1B[32m"); + _config->CndSet("APT::Color::Bold", "\x1B[1m"); _config->CndSet("APT::Color::Neutral", "\x1B[0m"); _config->CndSet("APT::Color::Red", "\x1B[31m"); diff --git a/apt-private/private-update.cc b/apt-private/private-update.cc index cc0753c26..6edde05ed 100644 --- a/apt-private/private-update.cc +++ b/apt-private/private-update.cc @@ -266,7 +266,11 @@ bool DoUpdate() if (upgradable == 0) c1out << _("All packages are up to date.") << std::endl; else - ioprintf(c1out, msg, upgradable); + { + c1out << _config->Find("APT::Color::Bold"); + ioprintf(c1out, msg, upgradable); + c1out << _config->Find("APT::Color::Neutral"); + } RunScripts("APT::Update::Post-Invoke-Stats"); } diff --git a/doc/examples/configure-index b/doc/examples/configure-index index 72e907507..8a064fc21 100644 --- a/doc/examples/configure-index +++ b/doc/examples/configure-index @@ -725,6 +725,7 @@ apt::planner "<STRING>"; apt::system "<STRING>"; apt::acquire::translation "<STRING>"; // deprecated in favor of Acquire::Languages apt::color::highlight "<STRING>"; +apt::color::bold "<STRING>"; apt::color::neutral "<STRING>"; apt::output-version "<INT>"; |