La séance de questions et réponses d’aujourd’hui nous est offerte par SuperUser, une sous-division de Stack Exchange, un groupe de sites Web de questions-réponses dirigé par la communauté.
La question
Lecteur superutilisateur Jay veut savoir pourquoi la taille de la mémoire tampon de sortie par défaut de l’invite de commande Windows est si importante:
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?
Pourquoi la taille de tampon de sortie par défaut de l'invite de commande Windows est-elle si importante? Sa taille peut-elle être modifiée?
La réponse
Les contributeurs du super-utilisateur, Steven et miltonb, ont la solution pour nous. Première place, 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.
Suivi de la réponse de 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
Avez-vous quelque chose à ajouter à l'explication? Sound off dans les commentaires. Voulez-vous lire plus de réponses d'autres utilisateurs de Stack Exchange doués en technologie? Découvrez le fil de discussion complet ici.