views:

2948

answers:

7

Is it possible to programatically, 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 rediculous to me that all console windows in Windows are width limited.

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

+2  A: 

If you right click on the title bar of a command window and choose properties, you can change widths in the Layout tab

Carl
Wow, much nicer. This is where I hang up my hat in shame. This allows you to set a default for individual links/programs, but is there a way to set a universal default?
Matthew Scharley
It allows you to set settings for the title window. If you open up cmd.exe then you can set it for that. It should work for most windows then on out.
PintSizedCat
Yeah, I found that after I set it on cmd.exe it seemed to work on all the other things that I have used since. It didn't seem to have affected a console app that I build in .NET, so I changed the properties in the same way and it seems to have persisted even between builds
Carl
+7  A: 
John Millikin
The last release was 2006, do you know if the 2.0b line is stable or not? Or should I go with 1.5 to test it out?
Matthew Scharley
Answering my own question, 2.0b is what is pictured. So I assume it is. Seems to be working at any rate :-)
Matthew Scharley
A: 

Click on the icon on the top left of the console frame (the one that looks like "C:\"), then select Properties . This lets you customize all kinds of stuff. The "layout" tab has the width of the window.

Galghamon
+1  A: 

To get all future console windows in a specific size you can create a shortcut to cmd.exe and then set size on the layout-tab of the shortcut properties.

sepang
A: 

In console properties at the Layout tab you can configure the following:

Screen Buffer Size Width

Window Size Width

The Window Size Width is how many characters per line will be visible. The Screen Buffer Size is the size of the line. If you set for example the Window Size Width at 100 and the Screen Buffer Size Width at 200, you will need to use the scrollbar to view the whole contents of lines with sizes between 100 and 200. Lines longer than 200 characters will appear in more than one line. This is useful if you have long lines and you want to copy them in a text file.

The same things apply for Windows PowerShell

kgiannakakis
+6  A: 

There is a window's api function to set the width. Here's a tut on it. http://www.adrianxw.dk/SoftwareSite/Consoles/Consoles6.html

+7  A: 

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