The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My badges

  • Twitter Updates

  • My Flickr Stream

  • Pages

  • All categories

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 1,706 other followers

Archive for June 27th, 2014

Changing the Windows Console Height/Width and screen buffer Height/Width

Posted by jpluimers on 2014/06/27

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 value 0x270f0078 in ScreenBufferSize (default 300 x 80 "ScreenBufferSize"=dword:012c0050").
  • Window height/width 69/120 is hex value 0x00500078 in WindowSize (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:

  1. backslashes are replaced by underscores.
  2. 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 »

Posted in Power User, Windows, Windows 7, Windows 8, Windows Server 2000, Windows Server 2003, Windows Server 2003 R2, Windows Server 2008, Windows Server 2008 R2, Windows Vista, Windows XP | Leave a Comment »

 
%d bloggers like this: