Can you have subprocesss.Popen retain color in stdout/stderr?
<p>I have the following code:</p>

<pre><code>p = subprocess.Popen(cmd.split(' '), env=os.environ, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
    while(True):
      log.info(p.stdout.readline())
      if(p.poll() is not None):
        break
</code></pre>

<p>Which works ok, except for the fact that it removes all color issued. Is there a way to retain this?</p>