Dapatkah Anda Mengubah Ukuran Buffer Output di Command Prompt Windows?

Daftar Isi:

Dapatkah Anda Mengubah Ukuran Buffer Output di Command Prompt Windows?
Dapatkah Anda Mengubah Ukuran Buffer Output di Command Prompt Windows?

Video: Dapatkah Anda Mengubah Ukuran Buffer Output di Command Prompt Windows?

Video: Dapatkah Anda Mengubah Ukuran Buffer Output di Command Prompt Windows?
Video: Aplikasi Terbaik Untuk Apple Watch (watch face) | The best application for apple watch complication - YouTube 2024, Mungkin
Anonim
Jika Anda adalah seseorang yang suka menggunakan Command Prompt Windows, Anda mungkin menemukan diri Anda ingin tahu mengapa buffer output layar memiliki ukuran default 'besar'. Dapatkah Anda mengubahnya menjadi ukuran yang lebih kecil (atau bahkan lebih besar)? Posting SuperUser Q & A saat ini memiliki jawabannya.
Jika Anda adalah seseorang yang suka menggunakan Command Prompt Windows, Anda mungkin menemukan diri Anda ingin tahu mengapa buffer output layar memiliki ukuran default 'besar'. Dapatkah Anda mengubahnya menjadi ukuran yang lebih kecil (atau bahkan lebih besar)? Posting SuperUser Q & A saat ini memiliki jawabannya.

Sesi Tanya & Jawab Hari ini hadir untuk memberi kami SuperUser - subdivisi Stack Exchange, pengelompokan situs web Q & A berbasis komunitas.

Pertanyaan

Pembaca SuperUser Jay ingin tahu mengapa ukuran buffer output Command Prompt default Windows begitu besar:

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?

Mengapa ukuran buffer perintah Windows Command Prompt default begitu besar? Bisakah ukurannya diubah?

Jawabannya

Kontributor SuperUser Steven dan miltonb memiliki jawabannya untuk kami. Pertama, 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.

Dilanjutkan dengan jawaban dari 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

Memiliki sesuatu untuk ditambahkan ke penjelasan? Bicaralah di komentar. Ingin membaca lebih banyak jawaban dari pengguna Stack Exchange yang paham teknologi lainnya? Lihat diskusi lengkap di sini.

Direkomendasikan: