To set the PowerShell screen buffer size with the command line

Source: Internet
Author: User

Background: Setting up the PowerShell buffer with the command line large

If the screen buffer is too small (height and width), the information is not displayed exactly after the command is executed, even if the output to text will have some information ... Instead, this is inconvenient, so you need to modify the size of the screen buffer. Here's how to modify the size of the PowerShell screen buffer as a command.


Method:

#设置powershell the console screen buffer

$host. Ui. Rawui.buffersize = New-object System.Management.Automation.Host.Size (175,20000)

#设置powershell window Size

$host. Ui. Rawui.windowsize = New-object System.Management.Automation.Host.Size (175,60)

This article is from the "7088733" blog, please be sure to keep this source http://7098733.blog.51cto.com/7088733/1775280

To set the PowerShell screen buffer size with the command line

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.