This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Get-ColorMode { | |
<# | |
.SYNOPSIS | |
Tests for FullColor (RGB) mode and X11/XTerm (XColor) modes by writing SGR and verifying it with a DECRQSS | |
Returns "Uknown" if there's no DECRQSS support, or "FullColor" and/or "XColor" otherwise | |
#> | |
[CmdletBinding()] | |
param() | |
$ColorMode = @{ |