Console settings are kept in the registry.
The default settings are under HKEY_CURRENT_USER\Console in the DWORD values ScreenBufferSize and WindowSize.
Examples:
- buffer height/width
9999
/120
is hex value0x270f0078
inScreenBufferSize
(default 300 x 80"ScreenBufferSize"=dword:012c0050"
). - Window height/width
69
/120
is hex value0x00500078
inWindowSize
(default 25 x 80"WindowSize"=dword:00190050
).
Depending on the window title, settings specific window title (console window name) are in additional keys under HKEY_CURRENT_USER\Console; each key has the name of the “console window name” with two twists:
- backslashes are replaced by underscores.
- your Windows directory is replaced with %SystemRoot%
So if your console window name is C:\Windows\system32\cmd.exe
, the key name is HKEY_CURRENT_USER\Console\%SystemRoot%_system32_cmd.exe Read the rest of this entry »