Customize the console in Windows 7

Open Regedit and go to
[HKEY_CURRENT_USER\Console]

Change these these value
“ColorTableXX”=dword:00000000
XX are 00 to 15.
Total of 16 palettes.
These numbers are used by ScreenColors, etc.
dword:00000000 is the color in hex, same as in HTML or others.

“ScreenColors”=dword:00000056
“PopupColors”=dword:000000f3
dword:000000XX
Xs are hex. One X is match one of the color table.
First X is background color
Last X is foreground color

Instead of colors, other properties are available. All they are dword values.
QuickEdit
InsertMode
ScreenBufferSize
WindowSize
CodePage
FaceName is string value
FontFamily
FontSize
FontWeight

Create a sub key for a console program.
such as
[HKEY_CURRENT_USER\Console\%SystemRoot%_system32_cmd.exe]
is for Command prompt
and
[HKEY_CURRENT_USER\Console\%SystemRoot%_System32_WindowsPowerShell_v1.0_powershell.exe]
is for powershell

These keys is used when open these program from third party programs.
For example, if [HKEY_CURRENT_USER\Console\%SystemRoot%_System32_WindowsPowerShell_v1.0_powershell.exe] key is not created, after open %SystemRoot%_System32_WindowsPowerShell_v1.0_powershell.exe, it has the black background and white fonts. Once the key is customized, the blue background is back.

For powershell, it can be done by code, too.
[console]::BackgroundColor=”Black”
[console]::ForegroundColor=”Yellow”
Remember do a cls to clean the screen.

This may work on XP and other Windows system, too.

Advertisements
This entry was posted in Windows. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s