PoshCode / Pansies

Powershell ANSI Escape Sequences, functions for colored output, etc.
MIT License
148 stars 14 forks source link

Bug only when color code used? #6

Closed CollinChaffin closed 6 years ago

CollinChaffin commented 7 years ago

I exclude my profile from loading, and the only module I import is the latest Pansies, and the odd thing is it works partially as you can see (2nd command), but when the color is introduced it barfs out what must be the behind the scenes alt codes? This is PS 5.1 on Win7x64 with DotNet 4.7.

Any help appreciated. TIA!

PS C:\> Write-Host "I $(New-Text "♥" -fg "DarkRed")"
I ←[31m♥←[39m
PS C:\>
PS C:\> Write-Host "I $(New-Text "♥")"
I ♥