Closed Jaykul closed 7 years ago
To get this prompt:
I 💟 PS>
I want to be able to write:
function prompt { "I" + [TextSpan]@{ fg = "Red"; text = [char]0x2665 } + "PS>"}
But currently, the Background is required:
Background
function prompt { "I" + [TextSpan]@{ bg = "Black"; fg = "Red"; text = [char]0x2665 } + "PS>"}
And the color doesn't reset, so PS> comes out red unless I manually call GetString, like:
PS>
function prompt { "I" + [TextSpan]::GetString("Red","Black",([char]0x2665),$true) + "PS>"}
Fixed in 56176d7
To get this prompt:
I want to be able to write:
But currently, the
Background
is required:And the color doesn't reset, so
PS>
comes out red unless I manually call GetString, like: