forked from directorcia/Office365
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtext-colour.ps1
69 lines (56 loc) · 1.34 KB
/
text-colour.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<# CIAOPS
Script provided as is. Use at own risk. No guarantees or warranty provided.
Description - Display all PowerShell copnsole colour combinations
Source - https://github.com/directorcia/Office365/blob/master/text-colour.ps1
Prerequisites = 0
More scripts available by joining http://www.ciaopspatron.com
#>
## Variables
$Fg = @( ## Foregrund colours
"Black",
"Blue",
"Cyan",
"DarkBlue",
"DarkCyan",
"DarkGray",
"DarkGreen",
"DarkMagenta",
"DarkRed",
"DarkYellow",
"Gray",
"Green",
"Magenta",
"Red",
"White",
"Yellow"
)
$bg = @( ## Background colours
"Black",
"Blue",
"Cyan",
"DarkBlue",
"DarkCyan",
"DarkGray",
"DarkGreen",
"DarkMagenta",
"DarkRed",
"DarkYellow",
"Gray",
"Green",
"Magenta",
"Red",
"White",
"Yellow"
)
$systemmessagecolor = "cyan"
Clear-Host
write-host -foregroundcolor $systemmessagecolor "Script started`n"
foreach ($bgcount in $bg) {
Foreach ($fgcount in $fg) {
Write-host "Foreground =", $fgcount, "/ Background =", $bgcount
Write-host -foregroundcolor $fgcount -backgroundcolor $bgcount "The quick brown fox jumped over the lazy dog 1234567890!@#$%^&*()-+="
write-host
}
write-host
}
write-host -foregroundcolor $systemmessagecolor "`nScript Completed`n"