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

PSAnsiRenderingFileInfo causes display issues with Out-ConsoleGridView #159

Closed ThomasNieto closed 2 years ago

ThomasNieto commented 2 years ago

Prerequisites

Steps to reproduce

Filesystem provider output with PSAnsiRenderingFileInfo experiential feature enabled causes ANSI codes to be displayed when piped to Out-ConsoleGridView.

Expected behavior

No ANSI codes are displayed in `Out-ConsoleGridView`

Actual behavior

Name property has ANSI codes in Out-ConsoleGridView

Error details

No response

Environment data

Name                           Value
----                           -----
PSVersion                      7.3.0-preview.4
PSEdition                      Core
GitCommitId                    7.3.0-preview.4
OS                             Microsoft Windows 10.0.19043
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Name                                 Version Prerelease Repository Description
----                                 ------- ---------- ---------- -----------
Microsoft.PowerShell.ConsoleGuiTools 0.6.2.0            PSGallery  Cross-platform Console Gui Tools for PowerShell

Visuals

image

vexx32 commented 2 years ago

Wouldn't this be an issue for Out-ConsoleGridView itself to sort out? It looks like it does manual escaping of escape sequences to render them verbatim that it should perhaps not be doing in this instance?

daxian-dbw commented 2 years ago

@SteveL-MSFT Can you move this issue to the console utility module repository?

SteveL-MSFT commented 2 years ago

This was fixed by https://github.com/PowerShell/GraphicalTools/pull/158