Change Screen Buffer Size of Console Window in Windows  

    Change Screen Buffer Size of Console Window in Windows

    Change Screen Buffer Size of Console Window in Windows

    How to Change Screen Buffer Size of Console Window in Windows
    Published by Category: Apps & Features
    22 Dec 2018
    Designer Media Ltd


    How to Change Screen Buffer Size of Console Window in Windows


    A console (or "terminal) is an application that provides I/O to character-mode applications.

    For example: command prompt, PowerShell, or Linux

    The screen buffer size of a console window 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 console window (ex: command prompt, PowerShell, Linux) for your account in Windows 7, Windows 8, and Windows 10.

    The screen buffer size you set for a console window will only be applied to the specific console window shortcut that opened it.

    For example, command prompt opened via Win+X menu VS Run (Win+R) dialog. Each location would have its own settings.



     CONTENTS:

    • Option One: To Change Screen Buffer Size of Console Window in Properties
    • Option Two: To Change Screen Buffer Size of Console Window using "Mode" Command





    Change Screen Buffer Size of Console Window in Windows OPTION ONE Change Screen Buffer Size of Console Window in Windows
    To Change Screen Buffer Size of Console Window in Properties

    1. Open a command prompt, elevated command prompt, PowerShell, elevated PowerShell, or Linux console window you want using the shortcut or location you want to apply a custom screen buffer size to.

    You could also just directly right click on the console window 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 console window, and click/tap on Properties. (see screenshot below)

    Name:  command_prompt_screen_buffer_size-1.png
Views: 2536
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)

    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: 2606
Size:  27.4 KB






    Change Screen Buffer Size of Console Window in Windows OPTION TWO Change Screen Buffer Size of Console Window in Windows
    To Change Screen Buffer Size of Console Window using "Mode" Command

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

    1. While you have a command prompt, elevated command prompt, PowerShell, or elevated PowerShell console window 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 Console Window

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

    mode con

    Note   Note
    Lines = height size

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


     3. To Change Current Screen Buffer Size of Console Window

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

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

    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: 2475
Size:  7.7 KB
    Name:  mode_con_command-3.png
Views: 2493
Size:  11.6 KB


    That's it,
    Shawn


    Related Tutorials



  1.    16 Nov 2017 #1

    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. Brink's Avatar
    Posts : 35,225
    64-bit Windows 10 Pro build 18312
    Thread Starter
       16 Nov 2017 #2

    Thank you Dimitri. :)
      My ComputersSystem Spec

  3.    17 Nov 2017 #3

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


 

Tutorial Categories

Change Screen Buffer Size of Console Window in Windows Tutorial Index Network & Sharing Instalation and Upgrade Browsers and Email General Tips Gaming Customization Apps and Features Virtualization BSOD System Security User Accounts Hardware and Drivers Updates and Activation Backup and Restore Performance and Maintenance Mixed Reality Phone


Related Threads
How to Change Default Console Window Size in Windows A console (or "terminal) is an application that provides I/O to character-mode applications. For example: command prompt, PowerShell, or Linux This tutorial will show you how to change...
How to Change Transparency Level of Console Window in Windows 10 A console (or "terminal) is an application that provides I/O to character-mode applications. For example: command prompt, PowerShell, or Linux In Windows 10, users can...
How to Change Console Window Font and Font Size in Windows A console (or "terminal) is an application that provides I/O to character-mode applications. For example: command prompt, PowerShell, or Linux This tutorial will show you how to...
Command Prompt at login screen - Open in Windows 10 in User Accounts and Family Safety
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...
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/

Tags for this Thread

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 22:59.
Find Us