ansible/ansible — pull request #942 by dagwieers (2012-08-24 22:47:29+00:00)
Title: Check for terminal capabilities if curses is available

Normally curses is part of the standard library, but this was not
always the case in the past.

The ANSIBLE_COLOR environment variable and the tty-check have
priority over the curses method (as they are both faster than
the curses test).