PSColor icon indicating copy to clipboard operation
PSColor copied to clipboard

Clearing console adds an empty line before Prompt()

Open brunovieira97 opened this issue 4 years ago • 0 comments

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: image

There's a Write-Host "" that inserts the empty line.

My console with said Write-Host (original code): image

My console with line 57 commented: image

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.

brunovieira97 avatar May 24 '20 22:05 brunovieira97