Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.bugs.dist > #1102731

Bug#1010806: apt: Avoid color output on monochrome terminals

From Axel Scheepers <axel.scheepers76@gmail.com>
Newsgroups linux.debian.bugs.dist
Subject Bug#1010806: apt: Avoid color output on monochrome terminals
Date 2022-05-10 21:00 +0200
Message-ID <ElDfr-eB78-13@gated-at.bofh.it> (permalink)
References <ElxWq-eycc-5@gated-at.bofh.it> <Elzvb-eyYm-3@gated-at.bofh.it> <ElAAV-ezOV-1@gated-at.bofh.it> <ElxWq-eycc-5@gated-at.bofh.it> <ElAAV-ezOV-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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

Back to linux.debian.bugs.dist | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Bug#1010806: apt: Avoid color output on monochrome terminals Axel <axel.scheepers76+debian@gmail.com> - 2022-05-10 15:20 +0200
  Bug#1010806: apt: Avoid color output on monochrome terminals Daniel Abrecht <debian-apt@danielabrecht.ch> - 2022-05-10 16:50 +0200
  Bug#1010806: apt: Avoid color output on monochrome terminals Adam Borowski <kilobyte@angband.pl> - 2022-05-10 17:00 +0200
    Bug#1010806: apt: Avoid color output on monochrome terminals Julian Andres Klode <jak@debian.org> - 2022-05-10 18:10 +0200
      Bug#1010806: apt: Avoid color output on monochrome terminals Axel Scheepers <axel.scheepers76@gmail.com> - 2022-05-10 21:00 +0200
        Bug#1010806: apt: Avoid color output on monochrome terminals Adam Borowski <kilobyte@angband.pl> - 2022-05-16 18:40 +0200
          Bug#1010806: apt: Avoid color output on monochrome terminals Axel Scheepers <axel.scheepers76@gmail.com> - 2022-05-16 20:20 +0200
            Bug#1010806: apt: Avoid color output on monochrome terminals Adam Borowski <kilobyte@angband.pl> - 2022-05-25 21:40 +0200
              Bug#1010806: apt: Avoid color output on monochrome terminals Axel Scheepers <axel.scheepers76@gmail.com> - 2022-05-26 11:10 +0200
          Bug#1010806: apt: Avoid color output on monochrome terminals Daniel Abrecht <debian-apt@danielabrecht.ch> - 2022-05-16 23:10 +0200
      Bug#1010806: apt: Avoid color output on monochrome terminals Axel Scheepers <axel.scheepers76@gmail.com> - 2022-05-10 21:50 +0200

csiph-web