add a final $ColorSeparator to the generated line. This works well when the last prompt has a background color like those displayed in the readme.
However, I like keeping all of my colors up top and print a null background for the last item on the prompt array.
I'm explicitly setting $Null colors to allow this.
Set-PowerLinePrompt -Colors $Null, Null
However, if a $ColorSeparator is added on the end, it appears as though the text is rendered with some other background color. This is the effect.
I can't seem to find a public way to alter this separator's background color. To achieve the working screenshot I showed above where the background color of the separator is clear, I added a wrapper to check the last background:
This code https://github.com/Jaykul/PowerLine/blob/1f5eb7eea692e277d8053c506129496d3a12a828/Source/Public/Write-PowerlinePrompt.ps1#L206-L209
add a final
$ColorSeparator
to the generated line. This works well when the last prompt has a background color like those displayed in the readme.However, I like keeping all of my colors up top and print a null background for the last item on the prompt array.
I'm explicitly setting
$Null
colors to allow this.However, if a
$ColorSeparator
is added on the end, it appears as though the text is rendered with some other background color. This is the effect.I can't seem to find a public way to alter this separator's background color. To achieve the working screenshot I showed above where the background color of the separator is clear, I added a wrapper to check the last background:
which works because the final block sets
$LastBackground
.Is there a better, public way to control this last separator?