Modify cmd.exe properties using the command prompt

后端 未结 4 1921
南旧
南旧 2020-11-30 21:33

Isn\'t that nicely recursive?

I\'ve got a portable command prompt on my external drive, and it has a nice .bat file to configure some initial settings, but I\'d li

4条回答
  •  广开言路
    2020-11-30 22:00

    Regarding setting the buffer size:

    Using mode con: cols=XX lines=YY sets not only the window (screen) size, but the buffer size too.

    If you specify a size allowed by your system, based on available screen size, you'll see that both window and buffer dimension are set to the same value; .e.g:

    mode con: cols=100 lines=30
    

    results in the following (values are the same):

    • window size: Width=160, Height=78
    • buffer size: Width=160, Height=78

    By contrast, if you specify values that are too large based on the available screen size, you'll see that the window size changes to its maximum, but the buffer size is changed to the values as specified.

    mode con: cols=1600 lines=900
    

    With a screen resolution of 1280x1024, you'll get:

    • window size: Width=160, Height=78
    • buffer size: Width=1600, Height=900

提交回复
热议问题