Phiên Hỏi & Đáp hôm nay đến với chúng tôi theo lịch sự của SuperUser - một phân khu của Stack Exchange, một nhóm các trang web Hỏi & Đáp do cộng đồng điều hành.
Câu hỏi
Người đọc SuperUser Jay muốn biết tại sao kích thước bộ đệm đầu ra Windows Command Prompt mặc định là quá lớn:
I have been using the Command Prompt in Windows for a while now and just realized that there are several pages worth of empty lines below the text entry prompt. Why is that?
Tại sao kích thước bộ đệm đầu ra Windows Command Prompt mặc định quá lớn? Kích thước của nó có bị thay đổi không?
Câu trả lời
Người đóng góp SuperUser Steven và miltonb có câu trả lời cho chúng tôi. Đầu tiên, Steven:
The “empty lines” are the rows of screen buffer that have not been filled with output yet. To change the screen buffer size from the default of 300 lines (Microsoft’s chosen default), perform the following steps:
- Open the Windows Command Prompt
- Right-click on the application’s icon in the upper left corner of the window
- Click on Properties in the drop down menu
- Select the Layout Tab
- Set the Screen Buffer Size (Height Listing) to 20
- Click OK
Note: I recommend reverting the buffer size to something larger since 20 lines is not much in the way of displayed output.
Tiếp theo là câu trả lời từ miltonb:
I know that this is not the “why” with regard to your question, but if you want to change the screen buffer size from within a Command Prompt window (or batch file), you can make use of the mode command (mode columns, lines). I regularly use this from within the command prompt:
mode 200, 300
Có cái gì để thêm vào lời giải thích? Tắt âm thanh trong các ý kiến. Bạn muốn đọc thêm câu trả lời từ những người dùng Stack Exchange có hiểu biết công nghệ khác? Xem toàn bộ chuỗi thảo luận tại đây.