summaryrefslogtreecommitdiffstats
path: root/third_party/libwebrtc/build/win/use_ansi_codes.py
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/libwebrtc/build/win/use_ansi_codes.py')
-rwxr-xr-xthird_party/libwebrtc/build/win/use_ansi_codes.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/third_party/libwebrtc/build/win/use_ansi_codes.py b/third_party/libwebrtc/build/win/use_ansi_codes.py
new file mode 100755
index 0000000000..5951c2ab4d
--- /dev/null
+++ b/third_party/libwebrtc/build/win/use_ansi_codes.py
@@ -0,0 +1,12 @@
+#!/usr/bin/env python
+# Copyright (c) 2015 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+"""Prints if the the terminal is likely to understand ANSI codes."""
+
+from __future__ import print_function
+
+import os
+
+# Add more terminals here as needed.
+print('ANSICON' in os.environ)