Is there a limit on the output of Console Window?

时光总嘲笑我的痴心妄想 提交于 2019-11-29 15:29:04

In a console window, click on Defaults

This opens a dialog box that allows you to set the scrollback buffer size (max number of lines to retain) by default in all of your console windows.

In my screenshot it is set to 9000 because I often log output to a console, and sometimes need to be able to scroll way back.

You can also modify it from your program for the console it is running in using Console.SetBufferSize().

Yes, the console has a width and height limit. And you can change it:

Answer modified from what's given here on microsoft's website:

  • Click the upper-left corner of the Command Prompt window, and then click Properties.
  • Click the Layout tab.
  • In Screen Buffer Size, type or select 2500 in Height.
  • Save the props by pressing OK.

You just have small buffer.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!