Módosíthatja a kimeneti puffer méretét a Windows parancssorában?

Tartalomjegyzék:

Módosíthatja a kimeneti puffer méretét a Windows parancssorában?
Módosíthatja a kimeneti puffer méretét a Windows parancssorában?

Videó: Módosíthatja a kimeneti puffer méretét a Windows parancssorában?

Videó: Módosíthatja a kimeneti puffer méretét a Windows parancssorában?
Videó: How to Change Default Weather City on Apple Watch - YouTube 2024, Lehet
Anonim
Ha valaki szeretne a Windows parancssort használva, előfordulhat, hogy kíváncsi volt arra, hogy miért van olyan "nagy" alapértelmezett méretű képernyő kimeneti puffer. Módosíthatja kisebb (vagy akár nagyobb) méretűre? A mai SuperUser Q & A hozzászólás a válaszokat tartalmazza.
Ha valaki szeretne a Windows parancssort használva, előfordulhat, hogy kíváncsi volt arra, hogy miért van olyan "nagy" alapértelmezett méretű képernyő kimeneti puffer. Módosíthatja kisebb (vagy akár nagyobb) méretűre? A mai SuperUser Q & A hozzászólás a válaszokat tartalmazza.

A mai Kérdések és válaszok munkamenetét a SuperUser - a Stack Exchange, a Q & A weboldalak közösség által irányított csoportosulásának részlegével - köszönheti.

A kérdés

A SuperUser olvasó Jay tudni akarja, miért olyan nagy az alapértelmezett Windows Command Prompt kimeneti pufferméret:

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?

Miért olyan nagy az alapértelmezett Windows Command Prompt kimeneti puffer nagysága? Mérete módosítható?

A válasz

A SuperUser-munkatársak, Steven és miltonb válaszolnak nekünk. Először, 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:

  1. Open the Windows Command Prompt
  2. Right-click on the application’s icon in the upper left corner of the window
  3. Click on Properties in the drop down menu
  4. Select the Layout Tab
  5. Set the Screen Buffer Size (Height Listing) to 20
  6. Click OK

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

Ezt követte a miltonb válasz:

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

Van valami a magyarázathoz? Hangzik ki a megjegyzésekben. Szeretne többet válaszolni a többi technikus-tudós Stack Exchange felhasználóiról? Nézze meg a teljes vitafonalat itt.

Ajánlott: