Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Progress rendering causes background color to leak #17368

Closed
5 tasks done
daxian-dbw opened this issue May 17, 2022 · 2 comments
Closed
5 tasks done

Progress rendering causes background color to leak #17368

daxian-dbw opened this issue May 17, 2022 · 2 comments
Labels
Issue-Bug Issue has been identified as a bug in the product Resolution-No Activity Issue has had no activity for 6 months or more WG-Interactive-Console the console experience

Comments

@daxian-dbw
Copy link
Member

Prerequisites

Steps to reproduce

Run the following script, and you will find the background color of the text written out by Write-Host leaked beyond the texts.
If you comment out the Write-Progress line, you will see the expected result.

$i=0;$c=20;$Activity="Items"
while ($c -gt $i)
{
    Write-Progress -Id 0 -Activity $Activity -Status ("Working on {0} of {1}" -f (++$i), $c) -PercentComplete ($i * 100.0 / $c)

    Write-Host -NoNewLine -Fore White -Back Blue "Hello $i";Write-Host ""
    Start-Sleep -Milliseconds 100
}
Write-Progress -Activity $Activity -Completed

Expected behavior

The blue background color doesn't leak

Actual behavior

The blue background color leaked.

Error details

No response

Environment data

Name                           Value
----                           -----
PSVersion                      7.2.2
PSEdition                      Core
GitCommitId                    7.2.2
OS                             Microsoft Windows 10.0.19044
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Visuals

image

@daxian-dbw daxian-dbw added Needs-Triage The issue is new and needs to be triaged by a work group. WG-Interactive-Console the console experience labels May 17, 2022
@theJasonHelmick theJasonHelmick added Issue-Bug Issue has been identified as a bug in the product and removed Needs-Triage The issue is new and needs to be triaged by a work group. labels Jul 26, 2023
@theJasonHelmick
Copy link
Collaborator

Thank you @daxian-dbw for reporting this bug.

@microsoft-github-policy-service microsoft-github-policy-service bot added the Resolution-No Activity Issue has had no activity for 6 months or more label Jan 23, 2024
Copy link
Contributor

This issue has not had any activity in 6 months, if there is no further activity in 7 days, the issue will be closed automatically.

Activity in this case refers only to comments on the issue. If the issue is closed and you are the author, you can re-open the issue using the button below. Please add more information to be considered during retriage. If you are not the author but the issue is impacting you after it has been closed, please submit a new issue with updated details and a link to this issue and the original.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Bug Issue has been identified as a bug in the product Resolution-No Activity Issue has had no activity for 6 months or more WG-Interactive-Console the console experience
Projects
None yet
Development

No branches or pull requests

2 participants