Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Windows default size for console application

While testing a console app, I set the properties of the console window to be only 3 lines high.

This change has somehow stuck, meaning that new console windows default to 3 lines high. If I create a new shortcut on the desktop, and point it to cmd.exe, the window that opens is 3 lines high.

Of course, I can alter this value using the properties panel, which ultimately results in "current window only"/"future windows with same title"/"shortcut that started this window" dialog to alter the stickiness of the setting. None of these choices results in the default being changed. If, subsequently, I make a new shortcut to cmd.exe, it's still 3 lines high.

The principal problem is that for any new console app that I write, the first time I debug it, I must change the size setting, and when I run the release build, it's the same story.

Does anyone know where the default settings for new (i.e. new title or from new shortcut) console app are stored/how to change them?

[and, yes, I feel like a muppet for asking, but I can't find this info anywhere!]

like image 974
spender Avatar asked Nov 13 '08 20:11

spender


People also ask

What is the size of the console window?

Default window size should be 80x25. Default buffer size is 80x300. Save this answer.

What is console buffer size?

The size of a screen buffer is expressed in terms of a coordinate grid based on character cells. The width is the number of character cells in each row, and the height is the number of rows.

What is the size of Command Prompt Windows 10?

More information. The maximum length of the string that you can use at the command prompt is 8191 characters.

How do I change the default terminal size in Windows?

Quick tip: You can also use the Ctrl + Shift , (comma) keyboard shortcut to open the settings page. Click on Startup. Under the “Launch size” section, use the Columns option to adjust the width of the Windows Terminal. Under the “Launch size” section, use the Rows option to adjust the height of the Windows Terminal.


2 Answers

Instead of using the Properties menu item - Use the defaults menu item.

like image 54
Brody Avatar answered Sep 21 '22 05:09

Brody


They're stored in the Registry:

HKEY_CURRENT_USER\Console
like image 23
Duncan Smart Avatar answered Sep 18 '22 05:09

Duncan Smart