Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Background color leaking to next scrolled line #15130

@yves-dolce

Description

@yves-dolce

Steps to reproduce

Issue this command on the last line of your window so that scrolling is taking place:

Write-Host "Bebop" -BackgroundColor Green -ForegroundColor Black

Expected behavior

The line below the "Bebop" line is clean (i.e. what was done with Write-Host doesn't leak into the following line)

Actual behavior

The line is painted green
image

Environment data

PSVersion                      7.1.3
PSEdition                      Core
GitCommitId                    7.1.3
OS                             Microsoft Windows 10.0.19042
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions