bug-gnulib
[Top][All Lists]
Advanced

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

Re: Colored output


From: Bruno Haible
Subject: Re: Colored output
Date: Thu, 14 Feb 2019 23:01:30 +0100
User-agent: KMail/5.1.3 (Linux/4.4.0-141-generic; KDE/5.18.0; x86_64; ; )

Hi Akim,

> I'm not sure handle_color_option works as expected.  I always (independently 
> of the argument of the option, and independently of whether the output is a 
> tty) get colored output on Bison (https://github.com/akimd/bison/pull/5), but 
> also in the two examples of libtextstyle.

Oops, right. The application code must evaluate the condition whether to
actually turn the styling on or off. (It's an application dependent condition.)
For the samples, I've fixed it like this:
https://git.savannah.gnu.org/gitweb/?p=gettext.git;a=commitdiff;h=ae8dc3bc9789b7077e0e2569058e15987e4be42c

Will update the documentation shortly.

Bruno




reply via email to

[Prev in Thread] Current Thread [Next in Thread]