I’ve been using Command Prompt in Windows for a while now and only just realized that there are several pages worth of empty lines below the prompt. Why?
The command prompt allocates enough rows for the screen buffer. The default of 300 requires several pages of scrolling.
After changing the buffer size, with the following instructions, the command prompt no longer has those blank pages.
- Open command prompt.
- Right click the application icon (in the upper left corner)
- Click on Properties
- Select the Layout tab
- Set the Screen Buffer Size, Height to 20.
- Close and reopen the command prompt.
NOTE: After testing, I recommend changing the buffer size back as 20 lines isn’t many lines of displayed output.
| The same way that the rest of a sheet of paper is left empty when you write just one line… 😀 – Rahul Basu 1 hour ago |
| The screen buffer is the number of rows and columns of command prompt output saved in memory. The window size is how much of the buffer is displayed in the window. – Steven 1 hour ago | ||
| @Jay The area outside the bounds of the currently displayed cmd window that can be viewed using the vertical scroll bar. It is usually used to view previous commands and output that are no longer visible. – DavidPostill 1 hour ago | ||
Instead of changing it back to the default I recommend to change it to the maximum supported value of 9999 lines. That's no really an issue memory-allocation-wise on computers that have been manufactured in this century and it can be quite helpful when running scripts that produce a lot of output. – Kaiserludi 9 mins ago |
