When running BlueTuxedo straight from the PowerShell ISE, the Show-Logo function returns an error whenever it tries to reset the background color.
PS C:\Tools> .\Invoke-BlueTuxedov2024.10-4dev.ps1
Write-Host : Cannot process the color because -1 is not a valid color.
Parameter name: value
Actual value was -1.
At C:\Tools\Invoke-BlueTuxedov2024.10-4dev.ps1:1461 char:5
+ Write-Host ' ' -BackgroundColor $BGColor
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (:) [Write-Host], ArgumentOutOfRangeException
+ FullyQualifiedErrorId : SetInvalidBackgroundColor,Microsoft.PowerShell.Commands.WriteHostCommand
::::::::: ::: ::: ::: :::::::::: ::::::::::: ::: ::: ::: ::: :::::::::: ::::::::: ::::::::
Apparently, the ISE returns nothing for $host.UI.RawUI.BackgroundColor. Will need to either find a different method to check the ISE background color or just assume the default blue background for now.
When running BlueTuxedo straight from the PowerShell ISE, the
Show-Logo
function returns an error whenever it tries to reset the background color.Apparently, the ISE returns nothing for
$host.UI.RawUI.BackgroundColor
. Will need to either find a different method to check the ISE background color or just assume the default blue background for now.