[issue17647] subprocess.communicate() should preserve colored output on Windows

R. David Murray report at bugs.python.org
Sun Apr 7 20:21:18 CEST 2013


R. David Murray added the comment:

Oh, good, I thought that was probably the case but I don't know Windows enough to have been sure.

Caitlin: if you can prove sbt and me wrong by writing a patch that works (without breaking anything else :), I think it would be considered.  Certainly on unix if you write ANSI color codes to stdout and the reader doesn't strip them, they will be preserved and can be redisplayed, so being able to do something similar on Windows would be nice.  I'm pretty sure there isn't any place stdout.read() is called, though.  The stdout output from the originating process will be being read by a different process via stdin.read().  And as sbt pointed out, neither one of those will be a console.

----------
nosy: +r.david.murray

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17647>
_______________________________________


More information about the Python-bugs-list mailing list