Advertisement

Fix: no scrolling in the command prompt after font change

The command prompt (cmd.exe) in Windows allows you to change the font and font size to make it more readable. The default font is small and that can be an issue for users of modern displays with high resolution. If you try to change the font in the command prompt window, you will notice that the scroll bar disappears! This is very annoying when you run some console app with several lines of output, and it gets displayed only partially. Here is how you can fix the issue and restore the scroll bar even for custom font settings.

Advertisеment


This is how the command prompt looks by default:
default command prompt
It uses a small bitmap font and has a scroll bar on the right which allows you to see long output of console apps and commands.

Now lets open properties and change the font and its size. Click the upper-left corner of the Command Prompt window, and then click Properties. (You can also press Alt+Space bar and then P)
context menu
On the Font tab, pick the "Consolas" font and set it to size 14:
Consolas
Click OK, and the scroll bar will disappear from the window! Now it will not show long command prompt output:
no scroll
To fix this, do the following:

    Open the command prompt properties again.
  1. On the Options tab, in the Command History section, enter 999 as the Buffer Size, and set Number of Buffers to 5.
    command history
  2. Now switch to the Layout tab and enter 2000 for the Height of the screen buffer size:
    Layout
  3. Click OK and you are done:
    scroll bar fixed

Now your command prompt window will have a scroll bar again and you can continue to use the desired font.
This trick works in all modern versions of Windows including Windows XP, Vista, 7 and Windows 8/8.1.

Support us

Winaero greatly relies on your support. You can help the site keep bringing you interesting and useful content and software by using these options:

If you like this article, please share it using the buttons below. It won't take a lot from you, but it will help us grow. Thanks for your support!

Advertisеment

Author: Sergey Tkachenko

Sergey Tkachenko is a software developer who started Winaero back in 2011. On this blog, Sergey is writing about everything connected to Microsoft, Windows and popular software. Follow him on Telegram, Twitter, and YouTube.

4 thoughts on “Fix: no scrolling in the command prompt after font change”

Leave a Reply

Your email address will not be published.

css.php
Using Telegram? Subscribe to the blog channel!
Hello. Add your message here.