Alex Rivera | Logout

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

Asked 2008-10-10T08:42:59.470
27

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.

Edit
Report

1 Answer

12
system("mode 45, 20");

This is a bad solution because it disables vertical scrolling.

This is better:

system("mode CON: COLS=120");
answered 2012-02-28T19:28:32.373

Your Answer