[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Colored output
From: |
Akim Demaille |
Subject: |
Re: Colored output |
Date: |
Thu, 14 Feb 2019 06:59:14 +0100 |
Hi Bruno,
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.
As a workaround, currently I'm using this:
void
err_begin_use_class (const char *s)
{
#if HAVE_LIBTEXTSTYLE
if (color_mode != color_no)
styled_ostream_begin_use_class (errstream, s);
#else
(void) s;
#endif
}
I might be doing something wrong, but I think I followed properly the
documentation.
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 <=
- Re: Colored output, Bruno Haible, 2019/02/14
- Re: Colored output, Akim Demaille, 2019/02/15
- Re: Colored output, Bruno Haible, 2019/02/15