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