PowerShell / ConsoleGuiTools

Modules that mix PowerShell and GUIs/CUIs!
https://www.powershellgallery.com/packages/Microsoft.PowerShell.ConsoleGuiTools
MIT License
776 stars 59 forks source link

Remove ANSI escape sequences from property values #158

Closed SteveL-MSFT closed 2 years ago

SteveL-MSFT commented 2 years ago

PR Summary

Since Out-ConsoleGridView uses the formatted data to resemble Format-Table this can include ANSI escape sequences and gets partially rendered. Change is to update this module to use PowerShell 7.2 to leverage the StringDecorated class to get the plaintext version of a string. This required updating the project to .NET 6.0 which is the majority of the changes.

Note that GraphicalTools module is changed in this PR to not being built as we no longer support that Avalon project.

PR Context

Brought up as part of https://github.com/PowerShell/PowerShell/issues/17636