Progress color is lost when redirecting
Open
Nobody has claimed this yet.
Issue-Bug
Need-Review
- Dominant language
- Rust
- Stars
- 523
- Forks
- 75
- Avg merge
- 3d 16h
- Merged PRs (30d)
- 24
Description
Prerequisites
- Write a descriptive title.
- Make sure you are able to repro it on the latest version
- Search the existing issues.
Summary
When redirecting stdout or saving the output to a variable progress information loses its color in the console.
Steps to reproduce
$results = dsc resource list --adapter Microsoft.DSC/PowerShell
Expected behavior
Progress information colors is not lost
Actual behavior
Progress information colors are lost
Error details
n/a
Environment data
7.6-preview4
Version
3.1.0-preview.5
Visuals
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing dsc resource list --adapter Microsoft.DSC/PowerShell in PowerShell 7.6-preview4, both interactively and with stdout redirected or assigned to $results. Trace the CLI's progress-output handling and verify that progress colors are preserved in those cases.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- powershell
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100