< Back

New-MSTerminalColorTable

Sat Jan 18, 2020 4:51 pm

NAME New-MSTerminalColorTable



SYNOPSIS

Generates a new array of colors for use in the -ColorTable parameter of New-MSTerminalProfile and

Set-MSTerminalProfile.





SYNTAX

New-MSTerminalColorTable [[-black] <String>] [[-blue] <String>] [[-cyan] <String>] [[-green] <String>] [[-purple]

<String>] [[-red] <String>] [[-white] <String>] [[-yellow] <String>] [[-brightBlack] <String>] [[-brightBlue]

<String>] [[-brightCyan] <String>] [[-brightGreen] <String>] [[-brightPurple] <String>] [[-brightRed] <String>]

[[-brightWhite] <String>] [[-brightYellow] <String>] [<CommonParameters>]





DESCRIPTION

Generates a new array of colors for use in the -ColorTable parameter of New-MSTerminalProfile and

Set-MSTerminalProfile. All colors are optional with default values being provided from the built-in Campbell

color scheme.





PARAMETERS

-black <String>

The black color in hex color format "#rrggbb".



Required? false

Position? 0

Default value "#0C0C0C"

Accept pipeline input? False

Accept wildcard characters? false



-blue <String>

The blue color in hex color format "#rrggbb"



Required? false

Position? 1

Default value "#0037DA"

Accept pipeline input? False

Accept wildcard characters? false



-brightBlack <String>

The brightBlack color in hex color format "#rrggbb"



Required? false

Position? 2

Default value "#767676"

Accept pipeline input? False

Accept wildcard characters? false



-brightBlue <String>

The brightBlue color in hex color format "#rrggbb"



Required? false

Position? 3

Default value "#3B78FF"

Accept pipeline input? False

Accept wildcard characters? false



-brightCyan <String>

The brightCyan color in hex color format "#rrggbb"



Required? false

Position? 4

Default value "#61D6D6"

Accept pipeline input? False

Accept wildcard characters? false



-brightGreen <String>

The brightGreen color in hex color format "#rrggbb"



Required? false

Position? 5

Default value "#16C60C"

Accept pipeline input? False

Accept wildcard characters? false



-brightPurple <String>

The brightPurple color in hex color format "#rrggbb"



Required? false

Position? 6

Default value "#B4009E"

Accept pipeline input? False

Accept wildcard characters? false



-brightRed <String>

The brightRed color in hex color format "#rrggbb"



Required? false

Position? 7

Default value "#E74856"

Accept pipeline input? False

Accept wildcard characters? false



-brightWhite <String>

The brightWhite color in hex color format "#rrggbb"



Required? false

Position? 8

Default value "#F2F2F2"

Accept pipeline input? False

Accept wildcard characters? false



-brightYellow <String>

The brightYellow color in hex color format "#rrggbb"



Required? false

Position? 9

Default value "#F9F1A5"

Accept pipeline input? False

Accept wildcard characters? false



-cyan <String>

The cyan color in hex color format "#rrggbb"



Required? false

Position? 10

Default value "#3A96DD"

Accept pipeline input? False

Accept wildcard characters? false



-green <String>

The green color in hex color format "#rrggbb"



Required? false

Position? 11

Default value "#13A10E"

Accept pipeline input? False

Accept wildcard characters? false



-purple <String>

The purple color in hex color format "#rrggbb"



Required? false

Position? 12

Default value "#881798"

Accept pipeline input? False

Accept wildcard characters? false



-red <String>

The red color in hex color format "#rrggbb"



Required? false

Position? 13

Default value "#C50F1F"

Accept pipeline input? False

Accept wildcard characters? false



-white <String>

The white color in hex color format "#rrggbb"



Required? false

Position? 14

Default value "#CCCCCC"

Accept pipeline input? False

Accept wildcard characters? false



-yellow <String>

The yellow color in hex color format "#rrggbb"



Required? false

Position? 15

Default value "#C19C00"

Accept pipeline input? False

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

None







OUTPUTS

System.String[]







NOTES









-------------------------- Example 1 --------------------------



PS C:\\> $Colors = @{

black = '#0C0C0C'

blue = '#0037DA'

brightBlack = '#767676'

brightBlue = '#3B78FF'

brightCyan = '#61D6D6'

brightGreen = '#16C60C'

brightPurple = '#B4009E'

brightRed = '#E74856'

brightWhite = '#F2F2F2'

brightYellow = '#F9F1A5'

cyan = '#3A96DD'

green = '#13A10E'

purple = '#881798'

red = '#C50F1F'

white = '#CCCCCC'

yellow = '#C19C00'

}

PS C:\\> $ColorTable = New-MSTerminalColorTable @Colors

PS C:\\> Set-MSTerminalProfile -Name PowerShell -ColorTable $ColorTable -ColorScheme $null



Generates a color table array and sets the profile named "PowerShell" to use the custom color table instead of a

defined color scheme.



RELATED LINKS