日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁 > 运维知识 > windows >内容正文

windows

在命令提示符输出c语言代码_您可以在Windows命令提示符中更改输出缓冲区的大小吗?...

發(fā)布時(shí)間:2023/12/6 windows 31 豆豆
生活随笔 收集整理的這篇文章主要介紹了 在命令提示符输出c语言代码_您可以在Windows命令提示符中更改输出缓冲区的大小吗?... 小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.

在命令提示符輸出c語言代碼

If you are someone who loves using the Windows Command Prompt, you may have found yourself curious as to why the screen output buffer has such a ‘large’ default size. Can you change it to a smaller (or even larger) size? Today’s SuperUser Q&A post has the answers.

如果您是喜歡使用Windows命令提示符的人,您可能會(huì)發(fā)現(xiàn)自己對(duì)為什么屏幕輸出緩沖區(qū)具有如此大的默認(rèn)大小感到好奇。 您可以將其更改為較小(甚至更大)的尺寸嗎? 今天的“超級(jí)用戶問答”帖子已經(jīng)給出了答案。

Today’s Question & Answer session comes to us courtesy of SuperUser—a subdivision of Stack Exchange, a community-driven grouping of Q&A web sites.

今天的“問答”環(huán)節(jié)由SuperUser提供,它是Stack Exchange的一個(gè)分支,該社區(qū)是由社區(qū)驅(qū)動(dòng)的Q&A網(wǎng)站分組。

問題 (The Question)

SuperUser reader Jay wants to know why the default Windows Command Prompt output buffer size is so large:

SuperUser閱讀器Jay想知道為什么默認(rèn)的Windows Command Prompt輸出緩沖區(qū)大小如此之大:

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?

我已經(jīng)在Windows中使用命令提示符已有一段時(shí)間了,只是意識(shí)到在文本輸入提示下有幾頁空白行。 這是為什么?

Why is the default Windows Command Prompt output buffer size so large? Can its size be altered?

為什么默認(rèn)的Windows命令提示符輸出緩沖區(qū)大小如此之大? 可以改變尺寸嗎?

答案 (The Answer)

SuperUser contributors Steven and miltonb have the answer for us. First up, Steven:

超級(jí)用戶貢獻(xiàn)者Steven和Miltonb為我們提供了答案。 首先,史蒂文:

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:

“空行”是屏幕緩沖區(qū)中尚未填充輸出的行。 要將屏幕緩沖區(qū)大小從默認(rèn)的300行(Microsoft選擇的默認(rèn)值)更改,請(qǐng)執(zhí)行以下步驟:

  • Open the Windows Command Prompt

    打開Windows命令提示符
  • Right-click on the application’s icon in the upper left corner of the window

    右鍵單擊窗口左上角的應(yīng)用程序圖標(biāo)
  • Click on Properties in the drop down menu

    在下拉菜單中單擊屬性

  • Select the Layout Tab

    選擇布局選項(xiàng)卡

  • Set the Screen Buffer Size (Height Listing) to 20

    將屏幕緩沖區(qū)大小(列表高度)設(shè)置為20

  • Click OK

    點(diǎn)擊確定

  • Note: I recommend reverting the buffer size to something larger since 20 lines is not much in the way of displayed output.

    注意:我建議將緩沖區(qū)大小恢復(fù)為更大的大小,因?yàn)?0行顯示的輸出不會(huì)太多。

    Followed by the answer from miltonb:

    隨后是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:

    我知道這不是問題的“原因”,但是如果您想在命令提示符窗口(或批處理文件)中更改屏幕緩沖區(qū)的大小,則可以使用mode命令(mode列,行)。 我經(jīng)常在命令提示符下使用它:

    • mode 200, 300

      模式200、300


    Have something to add to the explanation? Sound off in the comments. Want to read more answers from other tech-savvy Stack Exchange users? Check out the full discussion thread here.

    有什么補(bǔ)充說明嗎? 在評(píng)論中聽起來不錯(cuò)。 是否想從其他精通Stack Exchange的用戶那里獲得更多答案? 在此處查看完整的討論線程。

    翻譯自: https://www.howtogeek.com/235765/can-you-change-the-output-buffer-size-in-the-windows-command-prompt/

    在命令提示符輸出c語言代碼

    總結(jié)

    以上是生活随笔為你收集整理的在命令提示符输出c语言代码_您可以在Windows命令提示符中更改输出缓冲区的大小吗?...的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問題。

    如果覺得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。