This commit is contained in:
Gal Szkolnik 2021-04-27 16:39:03 +00:00
commit 5b8f0ca309
1 changed files with 2 additions and 0 deletions

View File

@ -1,4 +1,6 @@
$global:IsOutputANSICompatible = ( $global:IsOutputANSICompatible = (
$PSVersionTable.Platform -eq "Unix"
) -or (
([int]((Get-CimInstance -ClassName Win32_OperatingSystem).Version -split '\.')[0]) -ge 10 ([int]((Get-CimInstance -ClassName Win32_OperatingSystem).Version -split '\.')[0]) -ge 10
) -or ( ) -or (
($env:ConEmuANSI -eq 'ON') -and ($Host.Name -eq 'ConsoleHost' ) ($env:ConEmuANSI -eq 'ON') -and ($Host.Name -eq 'ConsoleHost' )