When I execute a command that gives huge output, infact it is log of a running server, I see that PowerShell ISE output pane is automatically wrapping the text to around half of the screen width when the tab in which the command is running is not active. Is there any way to avoid text wrap in PowerShell ISE output pane. Following are the sample screenshots.
Below screenshot is the Output when the tab running this command is active.
Below screenshot is the Output when the tab running this command is not active.
I have tried to pipe the output to Write-Host with a
-nonewline flag, but that seems to merge all the lines into single line, so that doesn't help me. I have also tried setting $Host.UI.RawUI.BufferSize.Width to 500, but this doesn't seem to help me. Can anyone help me find out what the problem is and how to fix it?