PowerShell/ConsoleGuiTools

PSAnsiRenderingFileInfo causes display issues with Out-ConsoleGridView

ThomasNieto opened this issue · 3 comments

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

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?

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

This was fixed by #158