Hi @atabekbekenov,
Thanks for getting in touch with your great question! I’ve only recently worked on resolving what might be this exact behavior in the following thread, and I hope this helps get this resolved for you quickly.
In that case it came down to a couple potential solutions:
- Replace these ANSI color codes, finding them via regex:
-replace '\x1b\[[0-9;]*m',''
- If this is run on PS Core on Linux, the following will render the output as plain text.
# Fix ANSI Color on PWSH Core issues when displaying objects
if ($PSEdition -eq "Core") {
$PSStyle.OutputRendering = "PlainText"
}
Let me know if either of those solutions help at all, otherwise I’ll be happy to jump into testing this one!
Best regards,
Kenny