The hard limit for the legacy Windows console was 9999. I'm surprised to see that, in the new console's dialog box, MS have still set a limit of 4 figures (therefore 9999) for the maximum screen buffer size. Is this a technical limitation or just the UI refusing to let you go beyond this? If it's not a technical limitation, how can I increase it beyond 9999?

  • If you're getting more than 9999 lines why not just log/redirect to a file? – Seth Jun 14 '18 at 10:25
  • 1
    Try to use a better alternative for standard cmd: cmder.net – mariaczi Jun 14 '18 at 10:33
  • When you say "new console", new since when? Will the box accept 5 digits, which are scrolled to the left on the 5th digit? Try "12345" to check. – AFH Jun 14 '18 at 10:38
  • @AFH Windows 10 has a new updated console that you can enable that makes improvements to certain things that I can't remember off the top of my head. Looks like buffer management wasn't one of them. – MoonRunestar Jun 14 '18 at 10:44
  • @MoonRunestar What console? Do you mean command prompt? Are we talking a command prompt or PowerShell? Windows 10 defaults to PowerShell. – Ramhound Jun 14 '18 at 10:53

The technical limitation of backscroll buffer in Windows (not only Win10) is not a 9999 but 32766.

You can't change it via console window properties but you may write small program which calls SetConsoleScreenBufferSize and set it to desired value.

Or just use alternative terminals like ConEmu.

  • Do you have a reference for the 32766 limit? – Jez Jun 15 '18 at 9:00
  • Definitely not. It's an experimental value and it comes from SHORT used in WinAPI – Maximus Jun 15 '18 at 13:52

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.