Re: preserving color ouput of a shell command via os.popen()
> See the difference? :) Brett, not only do I see the difference but I actually see it in color, too! : ) Thanks for your help, Juerg -- http://mail.python.org/mailman/listinfo/python-list
preserving color ouput of a shell command via os.popen()
Hi everyone I would like to get the output of a shell process on Linux (eg, "ls --color=auto") run via os.popen(), filter it and then output parts of it while preserving any original coloring added by that process. Doing child = os.popen("ls --color=auto") output = child.read() results in an ou