Last active
February 21, 2021 10:09
-
-
Save PotatoMaster101/40f1ec7e5ba57f68e1c5dd94ef15d950 to your computer and use it in GitHub Desktop.
Tests all the PowerShell Core colours in the current console
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
<# | |
.SYNOPSIS | |
Tests all the PowerShell Core colours in the current console. | |
.DESCRIPTION | |
The Test-ConsoleColours.ps1 script prints out the standard colours of PowerShell Core onto the current console, useful for testing console colours. | |
.INPUTS | |
None. | |
You cannot pipe objects to Test-ConsoleColours.ps1. | |
.OUTPUTS | |
None. | |
Test-ConsoleColours.ps1 does not generate any output. | |
#> | |
#Requires -PSEdition Core | |
#Requires -Version 7.0 | |
Write-Host 'Black: ' -NoNewline | |
Write-Host ' ' -BackgroundColor Black | |
Write-Host 'White: ' -NoNewline | |
Write-Host ' ' -BackgroundColor White | |
Write-Host 'Blue: ' -NoNewline | |
Write-Host ' ' -BackgroundColor Blue | |
Write-Host 'Yellow: ' -NoNewline | |
Write-Host ' ' -BackgroundColor Yellow | |
Write-Host 'Cyan: ' -NoNewline | |
Write-Host ' ' -BackgroundColor Cyan | |
Write-Host 'Magenta: ' -NoNewline | |
Write-Host ' ' -BackgroundColor Magenta | |
Write-Host 'Green: ' -NoNewline | |
Write-Host ' ' -BackgroundColor Green | |
Write-Host 'Red: ' -NoNewline | |
Write-Host ' ' -BackgroundColor Red | |
Write-Host 'Gray: ' -NoNewline | |
Write-Host ' ' -BackgroundColor Gray | |
Write-Host 'DarkBlue: ' -NoNewline | |
Write-Host ' ' -BackgroundColor DarkBlue | |
Write-Host 'DarkYellow: ' -NoNewline | |
Write-Host ' ' -BackgroundColor DarkYellow | |
Write-Host 'DarkCyan: ' -NoNewline | |
Write-Host ' ' -BackgroundColor DarkCyan | |
Write-Host 'DarkMagenta: ' -NoNewline | |
Write-Host ' ' -BackgroundColor DarkMagenta | |
Write-Host 'DarkGreen: ' -NoNewline | |
Write-Host ' ' -BackgroundColor DarkGreen | |
Write-Host 'DarkRed: ' -NoNewline | |
Write-Host ' ' -BackgroundColor DarkRed | |
Write-Host 'DarkGray: ' -NoNewline | |
Write-Host ' ' -BackgroundColor DarkGray |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment