Pash-Project / Pash

An Open Source reimplementation of Windows PowerShell, for Mono.
https://groups.google.com/group/pash-project
BSD 3-Clause "New" or "Revised" License
514 stars 54 forks source link

Missing paging support in Get-Host (How to view output with paging?) #384

Open ArsenShnurkov opened 9 years ago

ArsenShnurkov commented 9 years ago

these advises http://stackoverflow.com/questions/1078920/equivalent-of-more-command-in-powershell doesn't work for me.

PASH /> dir | out-host -paging 
Command 'out-host' not found.
  +CategoryInfo: ObjectNotFound, Reason: ParentContainsErrorRecordException
  +FullyQualifiedErrorId: CommandNotFoundException
PASH /> dir | more             
Standard input has not been redirected
  +CategoryInfo: InvalidOperation, Reason: InvalidOperationException
  +FullyQualifiedErrorId: PipelineError

Usage:
 more [options] <file>...

Options:
 -d          display help instead of ringing bell
 -f          count logical rather than screen lines
 -l          suppress pause after form feed
 -c          do not scroll, display text and clean line ends
 -p          do not scroll, clean screen and display text
 -s          squeeze multiple blank lines into one
 -u          suppress underlining
 -<number>   the number of lines per screenful
 +<number>   display file beginning from line number
 +/<string>  display file beginning from search string match
 -V          display version information and exit

For more details see more(1).