Skip to content

Latest commit

 

History

History
60 lines (37 loc) · 1.45 KB

Get-PSAnsiFileMap.md

File metadata and controls

60 lines (37 loc) · 1.45 KB
external help file Module Name online version schema
PSScriptTools-help.xml
PSScriptTools
2.0.0

Get-PSAnsiFileMap

SYNOPSIS

Display the PSAnsiFileMap.

SYNTAX

Get-PSAnsiFileMap [<CommonParameters>]

DESCRIPTION

Use this command to display the PSAnsiFileMap global variable. The Ansi pattern will be shown using the pattern.

EXAMPLES

Example 1

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.

PARAMETERS

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

None

OUTPUTS

PSAnsiFileEntry

NOTES

Learn more about PowerShell: http://jdhitsolutions.com/blog/essential-powershell-resources/

RELATED LINKS

Set-PSAnsiFileMap