Change Command Prompt Screen Buffer Size in Windows

    Change Command Prompt Screen Buffer Size in Windows

    How to Change Command Prompt Screen Buffer Size in Windows
    Published by Category: Apps & Features
    24 Sep 2017
    Designer Media Ltd

    Published by


    Brink's Avatar
    Administrator

    Posts: 25,183

    Show Printable Version 


    How to Change Command Prompt Screen Buffer Size in Windows

    information   Information
    A command prompt is an entry point for typing computer commands in the Command Prompt window. By typing commands at the command prompt, you can perform tasks on your computer without using the Windows graphical interface.

    The screen buffer size of a command prompt is expressed in terms of a coordinate grid based on character cells.
    • The width is the number of character cells in each row. The larger the width size, the more text will show in the same row before wrapping.
    • The height is the number of rows. The larger the height size, the further you can scroll before output data (text) is overwritten.

    This tutorial will show you how to change the screen buffer size of a command prompt for your account in Windows 7, Windows 8, and Windows 10.
    Note   Note
    The screen buffer size you set for a command prompt will only be applied to the specific command prompt shortcut that opened it.

    CONTENTS:
    • Option One: To Change Command Prompt Screen Buffer Size in Properties
    • Option Two: To Change Command Prompt Screen Buffer Size using "Mode" Command





    Change Command Prompt Screen Buffer Size in Windows OPTION ONE Change Command Prompt Screen Buffer Size in Windows
    To Change Command Prompt Screen Buffer Size in Properties

    1. Open a command prompt or elevated command prompt using the shortcut or location you want to apply a custom screen buffer size to.
    Note   Note
    You could also just directly right click on the command prompt shortcut or file, click/tap on Properties, and go to step 3 below.

    2. Right click or press and hold on the title bar of the command prompt, and click/tap on Properties. (see screenshot below)

    Name:  command_prompt_screen_buffer_size-1.png
Views: 165
Size:  20.3 KB

    3. Click/tap on the Layout tab, make any width and height adjustments you want for Screen Buffer Size, and click/tap on OK to apply. (see screenshot below)
    Note   Note
    The width size you set under Screen Buffer Size will also be applied to the width size under Window Size.
    Name:  command_prompt_screen_buffer_size-2.png
Views: 155
Size:  27.4 KB






    Change Command Prompt Screen Buffer Size in Windows OPTION TWO Change Command Prompt Screen Buffer Size in Windows
    To Change Command Prompt Screen Buffer Size using "Mode" Command

    Note   Note
    The screen buffer size you set using this option will only be temporary, and only used while the command prompt is open unless you use Option One above to set it as default.

    1. While you have a command prompt or elevated command prompt open, do step 2 (current size) or step 3 (change size) below for what you would like to do.


     2. To See Current Screen Buffer Size of Command Prompt

    A) Type the command below into the command prompt, and press Enter. (see screenshot below)

    mode con

    Note   Note
    Lines = height size

    Columns = width size
    Name:  mode_con_command-1.png
Views: 158
Size:  10.6 KB


     3. To Change Current Screen Buffer Size of Command Prompt

    A) Type the command below into the command prompt, and press Enter. (see screenshots below)

    mode con:cols=<Width Size> lines=<Height Size>

    Note   Note
    Substitute <Width Size> in the command above with the value (ex: "90") you want for the screen buffer width size. The width size you set for Screen Buffer Size will also be applied to the width size for Window Size.

    Substitute <Height Size> in the command above with the value (ex: "20") you want for the screen buffer height size.

    For example: mode con:cols=90 lines=20
    Name:  mode_con_command-2.png
Views: 150
Size:  7.7 KB
    Name:  mode_con_command-3.png
Views: 154
Size:  11.6 KB


    That's it,
    Shawn


    Related Tutorials



  1.    2 Days Ago #1
    Join Date : Dec 2015
    Athens, Greece
    Posts : 140
    Windows 10 Pro x64

    Shawn, just a note, for Option 2.

    The command:
    mode con:cols=<Width Size> lines=<Height Size>
    or
    mode <Width Size>, <Height Size>

    has a slight problem, which you have already noted “the width size you set under Screen Buffer Size will also be applied to the width size under Window Size”.

    So if somebody just wants to change the Screen Buffer Size (Height size) without altering the size of the window the only solution I found was to run from the command prompt, the following PS commands, as PowerShell can alter just the buffer size, without changing the window size:

    Code:
    %SystemRoot%\system32\WindowsPowerShell\v1.0\PowerShell.exe -ExecutionPolicy ByPass -NonInteractive -Command "& {$NewBufferSize=$Host.UI.RawUI.BufferSize;$NewBufferSize.Height=3000;$Host.UI.RawUI.BufferSize=$NewBufferSize;}"
    OR
    Run the bat file Change_Buffer_Size.bat

    This will open a PS session, change the Screen Buffer Size of the current Command Prompt window, and will close, without the user noticing anything.
      My ComputerSystem Spec
  2.    1 Day Ago #2
    Join Date : Oct 2013
    Posts : 25,183
    64-bit Windows 10 Pro build 17040
    Thread Starter

    Thank you Dimitri.
      My ComputersSystem Spec
  3.    1 Day Ago #3
    Join Date : Dec 2015
    Athens, Greece
    Posts : 140
    Windows 10 Pro x64

    Glad to have have contributed, to a more complete solution! That's what the best Win10 forum is all about.
      My ComputerSystem Spec

 


Similar Threads
Tutorial Category
Apps & Features Change Command Prompt Default Window Size in Windows
How to Change Command Prompt Default Window Size in Windows A command prompt is an entry point for typing computer commands in the Command Prompt window. By typing commands at the command prompt, you can perform tasks on your computer without...
Tutorials
Apps & Features Change Command Prompt Transparency Level in Windows 10
How to Change Command Prompt Transparency Level in Windows 10 A command prompt is an entry point for typing computer commands in the Command Prompt window. By typing commands at the command prompt, you can perform tasks on your computer without...
Tutorials
General Tips Change Command Prompt Font and Font Size in Windows
How to Change Command Prompt Font and Font Size in Windows A command prompt is an entry point for typing computer commands in the Command Prompt window. By typing commands at the command prompt, you can perform tasks on your computer without...
Tutorials
Command Prompt at login screen - Open in Windows 10
Hello, I am using windows 10 but I forgot my login password. I need to open the Command Prompt but I don't have any bootable file to repair. Is there any key/short key that will open Command Prompt when my pc is locked and without repairing from...
User Accounts and Family Safety
How to Change the Command Prompt Colors and properties in Windows
Just read this article in " Makeuseof" Actually very cool!! Thought I'd share it http://www.makeuseof.com/tag/how-to-change-the-command-prompt-colors-in-windows/
Customization
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 20:27.
Find Us
Twitter Facebook Google+ Ten Forums iOS App Ten Forums Android App



Windows 10 Forums