external help file | Module Name | online version | schema |
---|---|---|---|
PSScriptTools-help.xml |
PSScriptTools |
2.0.0 |
Display the PSAnsiFileMap.
Get-PSAnsiFileMap [<CommonParameters>]
Use this command to display the PSAnsiFileMap global variable. The Ansi pattern will be shown using the pattern.
PS C:\> Get-PSAnsiFileMap
Description Pattern ANSI
----------- ------- ----
PowerShell \.((ps(d|m)?1)|(ps1xml))$ `e[38;2;252;127;12m`e[38;2;252;127;12m
Text \.((txt)|(log)|(htm(l)?))$ `e[38;2;58;120;255m`e[38;2;58;120;255m
...
The output will display the ANSI sequence using the sequence itself. The escape character will be based on the version of PowerShell you are using. This example shows output from PowerShell 7.
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
Learn more about PowerShell: http://jdhitsolutions.com/blog/essential-powershell-resources/