Disable styling when running in batch mode
[deliverable/binutils-gdb.git] / gdb / main.c
index a7283902fe25ed2cc485f8534e827d92c4ee91ad..e14dd06fa8caa4641ace6eaef48669fe9d3b6502 100644 (file)
@@ -47,6 +47,7 @@
 #include "common/signals-state-save-restore.h"
 #include <vector>
 #include "common/pathstuff.h"
+#include "cli/cli-style.h"
 
 /* The selected interpreter.  This will be used as a set command
    variable, so it should always be malloc'ed - since
@@ -850,7 +851,12 @@ captured_main_1 (struct captured_main_args *context)
       }
 
     if (batch_flag)
-      quiet = 1;
+      {
+       quiet = 1;
+
+       /* Disable all output styling when running in batch mode.  */
+       cli_styling = 0;
+      }
   }
 
   save_original_signals_state (quiet);
This page took 0.024022 seconds and 4 git commands to generate.