Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Set background color other then standard one in Powershell

Tags:

powershell

I can change console background color by script:

$host.UI.RawUI.BackgroundColor = "Black"

but in this case I'm limited to preset number of defined colors and unfortunately one I'm looking for is not here. There is option to pick color from console GUI (right click on top Windows PowerShell bar->properties->Colors). Unfortunately (again) only BackGroundColor and ForeGroundColor can be changed there, no way to change one of $host.privatedata colors there.

Is there possibility to put hex coded color via script somehow?

like image 320
Beetle Avatar asked Oct 05 '22 06:10

Beetle


1 Answers

there is a registry hack here : http://stackingcode.com/blog/2011/11/14/zenburn-powershell

like image 146
Loïc MICHEL Avatar answered Oct 10 '22 03:10

Loïc MICHEL