10

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.

  • Yes, it would be great if size of that windows could be changed. – IGRACH Nov 20 '16 at 23:17
4
+25

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.

image

[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".

1

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.

  • I suggest jacking it up to 1K. – surfasb Jul 26 '11 at 13:41
  • 1
    Please read the question again carefully. Your answer does not answer the original question. It doesn't change the size of the <f7> popup. – DavidPostill Nov 22 '16 at 13:06
0
Open Command Prompt
       Click the upper-left corner of the Command Prompt window, and then click Properties.
       Click the Options tab.
       In Command History, type or select 999 in Buffer Size, and then type or select 5 in Number of Buffers.
       In Edit Options, select the Quick Edit Mode and Insert Mode check boxes.
       Click the Layout tab.
       In Screen Buffer Size, type or select 2500 in Height.
       Do any of the following optional tasks:

       In Screen Buffer Size, increase Width.

       In Window Size, increase Height.

       In Window Size, increase Width.

       Clear the Let system position window check box, and then, in Window Position, change the values in Left and Top.
       In the Apply Properties dialog box, click Save properties for future windows with same title.
  • You answer is a duplicate of @StaceyRichards, which was already judged as not answering the post. You should be more careful when answering. – harrymc Nov 27 '16 at 20:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.