[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Colored output
From: |
Akim Demaille |
Subject: |
Re: Colored output |
Date: |
Fri, 15 Feb 2019 07:02:50 +0100 |
Hi Bruno!
> Le 14 févr. 2019 à 23:01, Bruno Haible <address@hidden> a écrit :
>
> 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.
Ok, thanks! But what is the proper way to open a styled stream without style?
$ ./_build/8d/hello --color=no
** (process:81925): CRITICAL **: 06:59:29.134: cr_om_parser_parse_file:
assertion 'a_this && a_file_uri && a_result' failed
Hello Akim Demaille!
(after your patch).
Cheers!
- Re: Colored output, Bruno Haible, 2019/02/10
- Re: Colored output, Jose E. Marchesi, 2019/02/10
- Re: Colored output, Akim Demaille, 2019/02/11
- Re: Colored output, Bruno Haible, 2019/02/12
- Re: Colored output, Akim Demaille, 2019/02/13
- Re: Colored output, Bruno Haible, 2019/02/13
- Re: Colored output, Akim Demaille, 2019/02/14
- Re: Colored output, Bruno Haible, 2019/02/14
- Re: Colored output,
Akim Demaille <=
- Re: Colored output, Bruno Haible, 2019/02/15