Fix capturing terminal output on windows
Fix capturing terminal output on windows

[#117428501]

Signed-off-by: Nick Wei <88313de659f5f6f483e38ffe364817e8884d9f11@pivotal.io>

cloudfoundry/cli,cloudfoundry/cli,cloudfoundry/cli