Bug#1010806: apt: Avoid color output on monochrome terminals
Hi,
Regarding terminal capabilities,
On Tue, May 10, 2022 at 6:04 PM Julian Andres Klode <jak@debian.org> wrote:
> > in programs. But there's no common characteristic of a terminal that'd
> > allow autodetecting your wishes.
The 'proper' way would be to query the terminfo entry Co I think. The best way
to make a terminal program color capable would be to use a terminal library
like ncurses which handles this for you and has a function `has_colors(void);`
which does the right thing(tm) :)
Kind regards,
Axel
Reply to: