December 19th, 2015

PowerTip: Use PowerShell to Change Colors in PSReadline Module

Doctor Scripto
Scripter

Summary: Learn how to use Windows PowerShell access color options in the PSReadline module.

Hey, Scripting Guy! Question How can I use Windows PowerShell to alter the colors in the PSReadline module?

Hey, Scripting Guy! Answer Use the Set-PSReadlineOption cmdlet to alter pretty much any item.
           For example, to provide a white foreground for error messages, use:

Set-PSReadlineOption –ErrorForegroundColor White

Author

The "Scripting Guys" is a historical title passed from scripter to scripter. The current revision has morphed into our good friend Doctor Scripto who has been with us since the very beginning.

0 comments

Discussion are closed.