Sets the current host property.
Set-HostProperty [-ForegroundColor <Black | DarkBlue | DarkGreen | DarkCyan | DarkRed | DarkMagenta | DarkYellow | Gray | DarkGray | Blue | Green | Cyan | Red | Magenta | Yellow | White>] [-BackgroundColor <Black | DarkBlue | DarkGreen | DarkCyan | DarkRed | DarkMagenta | DarkYellow | Gray | DarkGray | Blue | Green | Cyan | Red | Magenta | Yellow | White>] [-HostWidth <Int32>] [-Persist]
Sets the current host property and perssits them for the future if used with -Persist parameter.
© 2010-2019 Adam Najmanowicz, Michael West. All rights reserved. Sitecore PowerShell Extensions
Color of the console text.
| Aliases | |
|---|---|
| Required? | false |
| Position? | named |
| Default Value | |
| Accept Pipeline Input? | false |
| Accept Wildcard Characters? | false |
Color of the console background.
| Aliases | |
|---|---|
| Required? | false |
| Position? | named |
| Default Value | |
| Accept Pipeline Input? | false |
| Accept Wildcard Characters? | false |
Width of the text buffer (texts longer than the number provided will wrap to the next line.
| Aliases | |
|---|---|
| Required? | false |
| Position? | named |
| Default Value | |
| Accept Pipeline Input? | false |
| Accept Wildcard Characters? | false |
Persist the console setting provided
| Aliases | |
|---|---|
| Required? | false |
| Position? | named |
| Default Value | |
| Accept Pipeline Input? | false |
| Accept Wildcard Characters? | false |
Help Author: Adam Najmanowicz, Michael West
Set width of the console buffer to 80 and persist it for the future instances
PS master:\> Set-HostProperty -HostWidth 80 -PersistSet color of the console text to cyan. Next instance of the console will revert to default (white).
PS master:\> Set-HostProperty -ForegroundColor Cyan