How can I change the width of a Windows console window?

前端 未结 11 2235
一向
一向 2020-12-05 07:06

Is it possible to programmatically, or otherwise, increase the width of the Windows console window? Or do I need to create a wrapper program that looks and acts like the con

11条回答
  •  旧时难觅i
    2020-12-05 07:39

    the

    mode 
    

    and

    system("mode... 
    

    solutions did not work for me and I could not set the layout without getting a access error.

    Fix was to close Cygwin, right click properties on the icon in the start menu and edit layout -> window -> height and then say yes to allowing administrator privileges to save settings. (not run as administrator).

    now when running Cygwin always gives me a large window.

    Windows 7 64bit.

提交回复
热议问题