PSColor
PSColor copied to clipboard
Clearing console adds an empty line before Prompt()
When using clear
, PSColor adds an empty line on first row of terminal window, making the Prompt function start at the second line.
I took a look at the code and the root cause seems to be at PSColor.psm1@57:
There's a Write-Host ""
that inserts the empty line.
My console with said Write-Host
(original code):
My console with line 57 commented:
I'm not very skilled in PowerShell, so my Issue is basically for asking: is line 57 necessary? I removed it and nothing seemed to break.