summaryrefslogtreecommitdiff
path: root/apt-private/private-output.cc
diff options
context:
space:
mode:
authorJulian Andres Klode <julian.klode@canonical.com>2024-04-15 17:51:26 +0200
committerJulian Andres Klode <julian.klode@canonical.com>2024-04-19 20:49:05 +0200
commitae1ff72fbee8b3f5d063e8baa86a64e3da11aeb2 (patch)
treeca9a0f28ae4063ddeb7b50552769be3b68f2de48 /apt-private/private-output.cc
parent3f5e368ba800f823b36931ced783d450ec621264 (diff)
show: Highlight field names and colorize package name
We should pass this properly to the TagSection.write()
Diffstat (limited to 'apt-private/private-output.cc')
-rw-r--r--apt-private/private-output.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/apt-private/private-output.cc b/apt-private/private-output.cc
index d5720f41a..5d83a04f4 100644
--- a/apt-private/private-output.cc
+++ b/apt-private/private-output.cc
@@ -112,6 +112,8 @@ bool InitOutput(std::basic_streambuf<char> * const out) /*{{{*/
_config->CndSet("APT::Color::Action::Install-Dependencies", "green");
_config->CndSet("APT::Color::Action::Downgrade", "yellow");
_config->CndSet("APT::Color::Action::Remove", "red");
+ _config->CndSet("APT::Color::Show::Field", "\x1B[1m");
+ _config->CndSet("APT::Color::Show::Package", "\x1B[32m");
}
return true;