Support ANSI escape code on Windows
[oota-llvm.git] / include / llvm / Support / Process.h
index 6d6add0f3e4a98321a811e48db4bdb8da8953aeb..ce39d048bb96aaeb82b8c668238ca6e95e13ab82 100644 (file)
@@ -216,6 +216,12 @@ public:
   /// terminal, this function returns false.
   static bool StandardErrHasColors();
 
+  /// Enables or disables whether ANSI escape sequences are used to output
+  /// colors. This only has an effect on Windows.
+  /// Note: Setting this option is not thread-safe and should only be done
+  /// during initialization.
+  static void UseANSIEscapeCodes(bool enable);
+
   /// Whether changing colors requires the output to be flushed.
   /// This is needed on systems that don't support escape sequences for
   /// changing colors.