이 작동 :제어 창 위치는
(Get-Host).UI.RawUI
$a = (Get-Host).UI.RawUI
$a.BackgroundColor = "white"
$a.ForegroundColor = "black"
$size = (Get-Host).UI.RawUI.WindowSize
$size.Width = 80
$size.Height = 30
(Get-Host).UI.RawUI.WindowSize = $size
하지만이 작동하지 않습니다, 나는 그것이 작동되도록하는 방법을 잘 모르겠습니다 :
$position = (Get-Host).UI.RawUI.Windowposition
$position.X = 0
$position.Y = 30
(Get-Host).UI.RawUI.Windowposition = $position
내가 오류입니다 이상한. 그것은 뿌려 내가 외부 창 위치 설정하려고 할 때 "버퍼"
Exception setting "WindowPosition": "Cannot use the
specified Window X (column) position because it extends
past the width of the screen buffer. Specify another X
position, starting with 0 as the left most column of
the buffer.
네, 실제로 그렇게하고 있습니다. 좋아, 누가 그걸 필요로 할까? – djangofan