Hi Bruno! > Le 14 févr. 2019 à 23:01, Bruno Haible <br...@clisp.org> 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!