functions/dev-show.ps1
$red = "$([char]0x1b)[38;5;196m" $yellow = "$([char]0x1b)[38;5;228m" $green = "$([char]0x1b)[38;5;120m" $cyan = "$([char]0x1b)[36m" $cyanRev = "$([char]0x1b)[1;7;36m" $close = "$([char]0x1b)[0m" if ($host.name -eq "ConsoleHost" ) { Write-Information "Detected console host" [string]$topleft = [char]0x250c [string]$horizontal = [char]0x2500 [string]$topright = [char]0x2510 [string]$vertical = [char]0x2502 [string]$bottomleft = [char]0x2514 [string]$bottomright = [char]0x2518 } else { #use a simple character for VSCode and the ISE Write-Information "Detected something other than console host" [string]$topleft = "*" [string]$horizontal = "*" [string]$topright = "*" [string]$vertical = "*" [string]$bottomleft = "*" [string]$bottomright = "*" } $days = 10 $t = "No event reminders in the next $days days" $len = $t.length+2 $msg = @" $cyan$topleft$($horizontal*$len)$topright$close $cyan$vertical$close $yellow$t$close $cyan$vertical$close $cyan$bottomleft$($horizontal*$len)$bottomright$close "@ $msg |