After modifying some properties of cmd.exe (the font size) I'm unable to make the console 2 window wider.
The funny thing is, down the bottom left, it show whatever the width should be. (From console.xml)
I love the app, so I'm more curious than anything.
Also, any tips for embedding a command prompt in a C# app? :P
I've made an open source build automation tool, and I'm currently using a textbox to show STDOut, but it's a bit crap because of the refresh and general ineffectivity.
Thanks
P.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
the only way, I know, to make Console not resizable horizontally is to push cmd to its limits.
Here is few ways:
- choose large font in cmd's propreties;
- (recently discovered) console resizes cmd's window by telling it the new window&buffer size; cmd will refuse to grow larger than 128, but it will happily become larger if Properties dialog is used.
IIRC, the official build also follows cmd's rule to not make the window bigger than the main monitor. My unofficial one - from http://kirill.ca - does not respect that rule.
So, what's your version of Windows, Console, screen resolution, cmd's font and layout settings, console.xml?
Kirill
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Unfortunately, I still don't have a satisfactory answer (read "I have no idea how it happes"), but…
I managed to make the Console very very big (to the point of a crash) by changing the font to TrueType, 5pt in cmd's properties (in Console, View > Console Window, in system menu of the opened cmd's window, Properties > Font).
The Console will still stop growing when cmd is as wide as the main monitor.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anyway: The version I was using didn't show the cmd prompt properties screen when I selected
"Console, View > Console Window"
But the latest beta and your build do allow it, so I changed the properties in there to what I'm using in the actual cmd.exe and now everything is fine.
I wonder why there are differing properties, but all seem to inherit from the same place.
Even my python interpreter window went wacky.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Stuff from cmd's System menu > Properties is stored in HKEY_CURRENT_USER\Console. There will be few sub-folders, named after opening cmd window. E.g. if you run cmd.exe from Window's Run dialog and change its properties, it will create a sub-key %SystemRoot%_system32_cmd.exe. There is a Microsoft KB about customizing properties using shortcuts that give you a better idea.
As far as Console concerned, if you have Edit > Settings > Appearance > Use console window title setting checked, sub-folders will be named as your tabs (e.g. I have VS2008 tab, so, if I View > Console Window, System menu > Properties, change something, I'll get HKEY_CURRENT_USER\Console\VS2008). But if that setting is unchecked, then all tabs are opened with the "internal" title "Console command prompt", hence all tabs will use the same customization.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hey
After modifying some properties of cmd.exe (the font size) I'm unable to make the console 2 window wider.
The funny thing is, down the bottom left, it show whatever the width should be. (From console.xml)
I love the app, so I'm more curious than anything.
Also, any tips for embedding a command prompt in a C# app? :P
I've made an open source build automation tool, and I'm currently using a textbox to show STDOut, but it's a bit crap because of the refresh and general ineffectivity.
Thanks
P.
That should have been "bottom right".
Philip,
the only way, I know, to make Console not resizable horizontally is to push cmd to its limits.
Here is few ways:
- choose large font in cmd's propreties;
- (recently discovered) console resizes cmd's window by telling it the new window&buffer size; cmd will refuse to grow larger than 128, but it will happily become larger if Properties dialog is used.
IIRC, the official build also follows cmd's rule to not make the window bigger than the main monitor. My unofficial one - from http://kirill.ca - does not respect that rule.
So, what's your version of Windows, Console, screen resolution, cmd's font and layout settings, console.xml?
Windows XP SP3
Console 2.00.146
Resolution : 1920*1080
CMD font 6 * 8 Raster
CMD layout:
buffer width: 400
buffer height: 4000
window size width: 301
window size height: 108
cmd covers the whole screen, where as console defaults to a quarter of the screen.
Your build cannot be made wider either, should it be able to?
Just got the latest beta : Console-2.00b148-Beta_32bit
The window can be made slightly wider!
Unfortunately, I still don't have a satisfactory answer (read "I have no idea how it happes"), but…
I managed to make the Console very very big (to the point of a crash) by changing the font to TrueType, 5pt in cmd's properties (in Console, View > Console Window, in system menu of the opened cmd's window, Properties > Font).
The Console will still stop growing when cmd is as wide as the main monitor.
I thought I posted a response last week.. odd.
Anyway: The version I was using didn't show the cmd prompt properties screen when I selected
"Console, View > Console Window"
But the latest beta and your build do allow it, so I changed the properties in there to what I'm using in the actual cmd.exe and now everything is fine.
I wonder why there are differing properties, but all seem to inherit from the same place.
Even my python interpreter window went wacky.
Stuff from cmd's System menu > Properties is stored in HKEY_CURRENT_USER\Console. There will be few sub-folders, named after opening cmd window. E.g. if you run cmd.exe from Window's Run dialog and change its properties, it will create a sub-key %SystemRoot%_system32_cmd.exe. There is a Microsoft KB about customizing properties using shortcuts that give you a better idea.
As far as Console concerned, if you have Edit > Settings > Appearance > Use console window title setting checked, sub-folders will be named as your tabs (e.g. I have VS2008 tab, so, if I View > Console Window, System menu > Properties, change something, I'll get HKEY_CURRENT_USER\Console\VS2008). But if that setting is unchecked, then all tabs are opened with the "internal" title "Console command prompt", hence all tabs will use the same customization.
I had no idea. Thanks for the explanation!