summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2024-04-19 17:20:31 +0000
committerJulian Andres Klode <jak@debian.org>2024-04-19 17:20:31 +0000
commit70103339b017a42ea71a56c27c221a79ccc3116f (patch)
treea1797800fb7ebeb1bdd8833d3bcc2503438de4f4 /doc
parent633f6d67a28b375cf1f225f14d3c926e618d46af (diff)
parent28ec28746d8633b9c4b67cd6d1b603a1da57f436 (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 'doc')
-rw-r--r--doc/apt.conf.5.xml39
-rw-r--r--doc/apt.ent10
2 files changed, 49 insertions, 0 deletions
diff --git a/doc/apt.conf.5.xml b/doc/apt.conf.5.xml
index 2ae569e26..a648d7079 100644
--- a/doc/apt.conf.5.xml
+++ b/doc/apt.conf.5.xml
@@ -174,6 +174,45 @@ DPkg::Pre-Install-Pkgs {"/usr/sbin/dpkg-preconfigure --apt";};
</para></listitem>
</varlistentry>
+ <varlistentry><term><option>Color</option></term>
+ <listitem><para>
+ This scope defines colors and styles. The basic colors supported are
+ <option>red</option>,
+ <option>green</option>,
+ <option>yellow</option>,
+ <option>blue</option>,
+ <option>magenta</option>,
+ <option>cyan</option>, and
+ <option>white</option>.
+ </para>
+ <para>
+ The subscope <option>action</option> defines the colors for package lists
+ in <option>install</option> and similar commands. The following options may be set:
+ <option>APT::Color::Action::Upgrade</option>,
+ <option>APT::Color::Action::Install</option>,
+ <option>APT::Color::Action::Install-Dependencies</option>,
+ <option>APT::Color::Action::Downgrade</option>,
+ <option>APT::Color::Action::Remove</option>; corresponding to their
+ lists in the &apt; output.
+ </para>
+ <para>
+ Each color may reference one or more other color options by name, relative
+ to <option>APT::Color</option>. Their escape sequences will be combined.
+ </para>
+ <informalexample><programlisting>
+APT::Color::Bold "\x1B[1m";
+APT::Color::Action::Install "cyan";
+APT::Color::Action::Upgrade "bold action::install";
+ </programlisting></informalexample>
+ <para>
+ Colors may be turned on or off completely by setting <option>APT::Color</option>
+ to <option>yes</option> or <option>no</option>, by utilizing <envar>NO_COLOR</envar>
+ or <envar>APT_NO_COLOR</envar> environment variables, or using the
+ <option>--color</option>, <option>--no-color</option> command-line options.
+ </para>
+ </listitem>
+ </varlistentry>
+
<varlistentry><term><option>Compressor</option></term>
<listitem><para>
This scope defines which compression formats are supported, how compression
diff --git a/doc/apt.ent b/doc/apt.ent
index a6abb0e0a..386abd493 100644
--- a/doc/apt.ent
+++ b/doc/apt.ent
@@ -70,6 +70,16 @@
</para>
</listitem>
</varlistentry>
+
+ <varlistentry>
+ <term><option>--no-color</option></term>
+ <term><option>--color</option></term>
+<listitem><para>Turn colors on or off. Colors are on by default on supported terminals for &apt; and
+can also be disabled using the <envar>NO_COLOR</envar> or <envar>APT_NO_COLOR</envar> environment variables,
+or further configured by the <option>APT::Color</option> configuration option and scope, see &apt-conf; for information on that.
+ </para>
+ </listitem>
+ </varlistentry>
">
<!-- Should be used within the option section of the text to