by TinkerTantrum at 2012-12-28 12:54:16
A rather "noob" question from a "noob" user. I try to get output from the "ls" alias and it spits out all at once. I pipe it to more and it does not work.by nohandle at 2012-12-28 13:43:15
It is probably because the more function calls the more.comGet-Command more
CommandType Name ModuleName
----------- ---- ----------
Function more
Application more.com(Get-Item function]
param([string]$paths)
The more probably relies on the WindowSize property of the host that Console Host has set but the ISE does not.
$OutputEncoding = [System.Console]::OutputEncoding
if($paths)
{
foreach ($file in $paths)
{
Get-Content $file | more.com
}
}
else
{
$input | more.com
}$Host.name
$Host.UI.RawUI.WindowSizeConsoleHost
Width Height
----- ------
120 50Windows PowerShell ISE Host
Hence the boundary (screen height) is not reached in the ISE and the output does not stop until its end.