Skip to content

Reset color after writing Verbose, Debug, and Warning message - #14698

Merged
Travis Plunk (TravisEz13) merged 1 commit into
PowerShell:masterfrom
SteveL-MSFT:reset-color
Feb 3, 2021
Merged

Reset color after writing Verbose, Debug, and Warning message#14698
Travis Plunk (TravisEz13) merged 1 commit into
PowerShell:masterfrom
SteveL-MSFT:reset-color

Conversation

@SteveL-MSFT

@SteveL-MSFT Steve Lee (SteveL-MSFT) commented Feb 3, 2021

Copy link
Copy Markdown
Member

PR Summary

With the $PSStyle change, it did not reset the console attributes, so strings written before something else reset the color would retain those attributes incorrectly. Fix is to always use the Reset ANSI sequence after the string being written.

PR Checklist

@TravisEz13
Travis Plunk (TravisEz13) merged commit 8e77808 into PowerShell:master Feb 3, 2021
@SteveL-MSFT
Steve Lee (SteveL-MSFT) deleted the reset-color branch February 3, 2021 17:44
@iSazonov Ilya (iSazonov) added the CL-General Indicates that a PR should be marked as a general cmdlet change in the Change Log label Feb 6, 2021
@iSazonov Ilya (iSazonov) added this to the 7.2.0-preview.3 milestone Feb 6, 2021
@ghost

Copy link
Copy Markdown

🎉v7.2.0-preview.3 has been released which incorporates this pull request.:tada:

Handy links:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CL-General Indicates that a PR should be marked as a general cmdlet change in the Change Log

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants