How can I change the width of a Windows console window?

Matthew Scharley picture Matthew Scharley · Oct 10, 2008 · Viewed 60.5k times · Source

Is it possible to programmatically, or otherwise, increase the width of the Windows console window? Or do I need to create a wrapper program that looks and acts like the console somehow? Are there any programs around that do this already? I use Cygwin extensively in my development, and it seems a little ridiculous to me that all console windows in Windows are width limited.

If it matters at all, I'm running Windows XP.

Answer

Thomas picture Thomas · Mar 8, 2009

Simply run "mode cols,lines" to change the size of the current console window:

mode 120,60

will resize the console window to 120 columns and 60 lines