Commit 43238a8c authored by Arnaud Blanchard's avatar Arnaud Blanchard
Browse files

Remove the dynamic test of ANSI terminal in 'blcÃ_program_init'. This was...

Remove the dynamic test of ANSI terminal in 'blcÃ_program_init'. This was making interferences when different programs are launched at the same time.
parent ed5ededa
......@@ -481,10 +481,8 @@ void blc_program_init(int *argc, char ***argv, void (*exit_cb)(void))
if (isatty(STDERR_FILENO) && blc_input_terminal) {
if (!blc_stderr_ansi) fprintf(stderr, "o ansi terminal. There is no color.\n"); //The n of no is displayed byt he terminale itself.
if (isatty(STDERR_FILENO) && blc_input_terminal) blc_stderr_ansi=1;
else blc_stderr_ansi; //This is not waranty. It is safer to use blc_stderr_ansi_detect but it causes trouble when many program are launched at once
blc_program_add_option(&help, 'h', "help", 0, "display this help", NULL);
blc_program_parse_args_and_print_title(argc, argv);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment