I've written a python script with colored output. I have a powershell script to automate its execution and save its output, like follows:
$python = "path\to\python"
& $python main.py | Tee-Object -FilePath "$logfile"
If I remove the Tee-Object part, the colors show through just fine. In case it matters: For color output, I am using colorama and termcolor python modules.
Does anyone have any suggestions for how to workaround this problem?