From cc82e7dd0672534506baba00fd9e3db7ed3452fb Mon Sep 17 00:00:00 2001 From: Marko Mikulicic Date: Sat, 6 Oct 2012 20:36:07 +0200 Subject: [PATCH] Added a ANSIBLE_FORCE_COLOR env var, which forces the color output no matter what ncurses says. --- lib/ansible/color.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/ansible/color.py b/lib/ansible/color.py index 956b33160e7..a7124ec34d1 100644 --- a/lib/ansible/color.py +++ b/lib/ansible/color.py @@ -36,6 +36,9 @@ else: # curses returns an error (e.g. could not find terminal) ANSIBLE_COLOR=False +if os.getenv("ANSIBLE_FORCE_COLOR") is not None: + ANSIBLE_COLOR=True + # --- begin "pretty" # # pretty - A miniature library that provides a Python print and stdout