Ar galite pakeisti išvesties buferio dydį "Windows" komandų eilutėje?

Turinys:

Ar galite pakeisti išvesties buferio dydį "Windows" komandų eilutėje?
Ar galite pakeisti išvesties buferio dydį "Windows" komandų eilutėje?

Video: Ar galite pakeisti išvesties buferio dydį "Windows" komandų eilutėje?

Video: Ar galite pakeisti išvesties buferio dydį
Video: CS50 2015 - Week 8, continued - YouTube 2024, Balandis
Anonim
Jei esate žmogus, kuris myli, naudodamas "Windows" komandinę eilutę, jums gali būti įdomu, kodėl ekrano išvesties buferiui toks didelis numatytasis dydis. Ar galite jį pakeisti mažesniu (ar netgi didesniu) dydžiu? Šiandien "SuperUser Q &A" žinute turi atsakymus.
Jei esate žmogus, kuris myli, naudodamas "Windows" komandinę eilutę, jums gali būti įdomu, kodėl ekrano išvesties buferiui toks didelis numatytasis dydis. Ar galite jį pakeisti mažesniu (ar netgi didesniu) dydžiu? Šiandien "SuperUser Q &A" žinute turi atsakymus.

Šiandieninė klausimų ir atsakymų sesija pateikiama su "SuperUser" - "Stack Exchange", bendruomenės valdoma Q & A grupių asociacija.

Klausimas

SuperUser skaitytuvas Jay nori sužinoti, kodėl numatytasis "Windows Command Prompt" išvesties buferinis dydis yra toks didelis:

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?

Kodėl numatytasis Windows komandinės eilutės išvesties buferinis dydis toks didelis? Ar jo dydis gali būti pakeistas?

Atsakymas

"SuperUser" autoriai Stevenas ir Miltonb atsakė už mus. Pirma, Stevenas:

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.

Vykdant "miltonb" atsakymą:

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

Ar turite ką nors įtraukti į paaiškinimą? Garsas išjungtas komentaruose. Norite skaityti daugiau atsakymų iš kitų "Tech-savvy Stack Exchange" vartotojų? Patikrinkite visą diskusijų temą čia.

Rekomenduojamas: