Windows Command Prompt: How to change the size of command history window?
Pressing F7
in the Windows command prompt window displays a console window with the command history (list of previous commands). How do I change the size of this command history window?
For example, I might want to see more commands (increase height of this window) or see lengthier commands (increase width of this window). Please note that I am referring to the command history window, not the command prompt window.
Solution 1:
I am not aware of any hack that can increase the size of that window.
As far as I know, this size is built into cmd.exe
and it would take a binary
hack of this executable to change it, which no one has done yet.
Some default settings are to be found in the registry under
HKEY_CURRENT_USER\Console
for all consoles as well as subkeys for individual settings for other console programs. However, there is no setting for this window size.
An alternative way of seeing more of the history is by using the doskey command.
DOSKEY /HISTORY
Displays all commands stored in memory.
DOSKEY /LISTSIZE=number
Sets size of command history buffer to number lines.
Otherwise, you could maybe find an alternative shell that does what you want. See the AlternativeTo article of Windows Command Prompt.
[EDIT]
In a deleted answer, user @Hicsy remarked that following the doskey /history
command,
F9 can be used with a number counting from the bottom and starting with "1".
Solution 2:
You can change the size of this history list by clicking the command button in the upper left corner, selecting the Properties command and then changing the buffer size number on the Options tab under Command History.