2

The default buffer size in the new Windows terminal (https://github.com/microsoft/terminal) is too small and quickly gets full when reading a large file. I could not find a way to increase it.

In the old Windows terminal, one could change the buffer size using the method described in this answer: Windows Command Prompt: How do I increase my buffer?

diaa
  • 121
  • 1
  • 3
  • [Feature Request: configurable screen buffer size · Issue #3612 · microsoft/terminal · GitHub](https://github.com/microsoft/terminal/issues/3612) has a workaround – DavidPostill Oct 24 '21 at 19:02
  • Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking. – Community Oct 24 '21 at 20:15

1 Answers1

7

This is controlled by the historySize profile setting. The default value of 9001 can be changed via several different methods:

  • To change it for a single profile:

    1. From the Windows Terminal drop-down menu, select "Settings"
    2. Select the profile you want to change
    3. Chose the "Advanced" tab
    4. Increase the "History Size" to your desired setting
    5. Save
  • To change it for all profiles (available in the latest Windows Terminal release from a few days ago):

    1. From the Windows Terminal drop-down menu, select "Settings"
    2. Select "Defaults" under the Profiles section
    3. Chose the "Advanced" tab
    4. Increase the "History Size" to your desired setting
    5. Save

It is also possible, of course, to modify the settings.json file directly.

Depending on your shell, you may also want to consider using something like tmux, which has a built in buffer with more features than those typically available in terminal applications. It's entirely possible, using WSL and a bit of configuration, to even set this up for PowerShell or CMD.

NotTheDr01ds
  • 17,574
  • 4
  • 44
  • 81