[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1117198: apt outputs colored text despite NO_COLOR env var



Package: apt
Version: 3.1.7

apt is listed at https://no-color.org/ as software that supports the
NO_COLOR env var. The apt man page doesn't seem to mention it, but the
apt-config man page does.

The potential issue I wish to report is that when I invoke

# export NO_COLOR=1 && apt install tmux

text that is normally colored is no longer colored, as expected. For
instance, the package to be installed and its dependencies are no longer
shown in green. And, when the packages are fetched the progress
indicator is no longer yellow/orange.

However, the progress bar shown while the package are being installed
continues to be colored green. This is not expected. Instead, I expected
the progress bar not to be colored.

I experience the same behavior when I pass --no-color or set
APT_NO_COLOR=1.

Is this intended or indeed a tiny bug?


Reply to: